MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Personalization failure?  (Mono Support )

Viewed 6841 time(s), 17 post(s) 2/14/2013 10:14:46 PMby Zoomicon
Zoomicon

Zoomicon

2/14/2013 10:14:46 PM
I don't undertand what the following error means

I'm getting it after trying the latest build with an upgraded database from previous version, when doing http://localhost. It can't be an IIS setting since with the blank DB it was working fine

(I first upgraded the db, then reinstalled MonoX)

---

Server Error in '/' Application.

Personalization is not enabled and/or modifiable.
The Enabled property must be set to true, and a registered
personalization provider must be selected. The current user must be
granted the right to modify personalization state.



Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.





Exception Details: System.InvalidOperationException:
Personalization is not enabled and/or modifiable. The Enabled property
must be set to true, and a registered personalization provider must be
selected. The current user must be granted the right to modify
personalization state.



Source Error:








An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.








Stack Trace:






[InvalidOperationException: Personalization is not enabled and/or modifiable. The Enabled property must be set to true, and a registered personalization provider must be selected. The current user must be granted the right to modify personalization state.]
System.Web.UI.WebControls.WebParts.WebPartPersonalization.EnsureEnabled(Boolean ensureModifiable) +105
System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrDeleteWebPart(WebPart webPart, Boolean delete) +48
System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrphanedParts() +181
System.Web.UI.WebControls.WebParts.WebPartManager.OnPageLoadComplete(Object sender, EventArgs e) +13
System.Web.UI.Page.OnLoadComplete(EventArgs e) +96
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5049
This content has not been rated yet. 
2793 Reputation 345 Total posts
Zoomicon

Zoomicon

2/15/2013 5:33:30 AM
putting back the installer-generated database it does work ok again

the only thing I can find that might be related (some others I found are about IIS settings like Anonymous Authentication which don't seem to apply in this case since it is fixed with DB swap):

http://888rock.blogspot.gr/2010/03/personalization-is-not-enabled-andor.html

however this asks to remove App_Data folder which I can't find, plus I'm not sure of what would happen if that personalization data is stored in the db and I remove respective table contents, wouldn't I lose content from the previous site?
This content has not been rated yet. 
2793 Reputation 345 Total posts
mzilic

mzilic

2/15/2013 1:28:13 PM
Hello,

Did you personalize the page which you tried to access, for example added web parts dynamically?

Regards,
Mario
This content has not been rated yet. 
2218 Reputation 300 Total posts
Zoomicon

Zoomicon

2/15/2013 6:01:12 PM
it's the homepage as shown at http://social.clipflair.net
This content has not been rated yet. 
2793 Reputation 345 Total posts
mzilic

mzilic

2/16/2013 3:48:27 PM
Hello Zoomicon,

Unfortunately this does not answer my question. Did you add some web parts dynamically, for example dragged and dropped web parts onto this page from the Module Gallery?

The homepage link you provided unfortunately does not show me if the controls on your homepage contain static HTML markup or controls which are not physically entered in the page markup. These controls are dynamically created based on the peronalization settings and or data saved by some of the web parts included in this homepage.

Regards,
Mario
This content has not been rated yet. 
2218 Reputation 300 Total posts
Zoomicon

Zoomicon

4/9/2013 9:27:24 AM
I think it may be related to an issue where although somebody has given modify writes to the apppool for the full monox directory it says the web.config is not modifiable (have already reported that). Will try to set explicit rights to it and install again
This content has not been rated yet. 
2793 Reputation 345 Total posts
Zoomicon

Zoomicon

4/9/2013 9:45:01 AM
CAN I CLEAR THAT PERSONALIZATION DATA FROM THE DATABASE MANUALLY SOMEHOW TO MAKE THE WEBSITE START?
This content has not been rated yet. 
2793 Reputation 345 Total posts
Zoomicon

Zoomicon

4/9/2013 9:53:08 AM
this is the same issue as:
http://www.mono-software.com/Mono/Pages/Discussion/dtopic/njZGEpwz2Ei6_6GbALbhWA/BUG-AT-SUPPORT-FORUM/
that occured with yesterday's MonoX nightly build

what I'd like to do is to remove any personalization info from the upgraded db if there's no other way to load it (the only "personalized" page may be the start page shown at http://social.clipflair.net and we can easily make that again by hand)
This content has not been rated yet. 
2793 Reputation 345 Total posts
Zoomicon

Zoomicon

4/9/2013 9:54:30 AM
btw, it's impossible to make the installer stop showing the warning that web.config isn't writable by the appool account even if I remove inherited permissions from the parent folder for that account and add modify rights to that file explicitly for the apppool account. Wonder if that is related
This content has not been rated yet. 
2793 Reputation 345 Total posts
khorvat

khorvat

4/9/2013 9:58:39 AM
You can remove the personalization in the MonoX page administration, you need to right click on the page and go to Manager Web Parts, there you will have an option to reset the whole page.

btw, it's impossible to make the installer stop showing the warning that web.config isn't writable by the appool account even if I remove inherited permissions from the parent folder for that account and add modify rights to that file explicitly for the apppool account. Wonder if that is related
We know about this issue and it will be solved in next major MonoX release, thanks for the feedback.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
1 2