BrowseProducts.aspx works with anonymous user (i am not logged in). But ShowDepartments.aspx blows up. Everything is fine if i am logged in. But obviously people will browse your site before you encourage signing up. There is only one line of code in each
file (in the Page_Load): Me.Master.EnablePersonalization =
True
I can't seem to step into this code while debugging.
THis is what happens:
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) +983467
System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrDeleteWebPart(WebPart webPart, Boolean delete) +36
System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrphanedParts() +174
System.Web.UI.WebControls.WebParts.WebPartManager.OnPageLoadComplete(Object sender, EventArgs e) +13
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnLoadComplete(EventArgs e) +8695206
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +735
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
A little more info. Not really. Doesn't do me any good. Apparently an unhappy webpart. At least i have it "handled" by error.aspx now.
Stepping into GetThreadsRss, everything is fine until i leave. Yet debugging isn't telling me anything. Same error for ShowFoums. BrowseThreads is fine.
wtf? This only happens if i am an anonymous user.
StackTrace: at System.Web.UI.WebControls.WebParts.WebPartPersonalization.EnsureEnabled(Boolean ensureModifiable) at System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrDeleteWebPart(WebPart webPart, Boolean delete) at System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrphanedParts()
at System.Web.UI.WebControls.WebParts.WebPartManager.OnPageLoadComplete(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Page.OnLoadComplete(EventArgs e) at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Source: System.Web Message: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. Url: http://localhost:50218/tbh_Web/ShowForums.aspx
Check the virtual directory / website's iis setting for Anonnymous Access. If it is enable, disable it. Now check the application, it should be working now.
slucas
0 Points
3 Posts
Stumped. Server Error. Personalization is not enabled...
Oct 23, 2008 12:29 AM|LINK
BrowseProducts.aspx works with anonymous user (i am not logged in). But ShowDepartments.aspx blows up. Everything is fine if i am logged in. But obviously people will browse your site before you encourage signing up. There is only one line of code in each file (in the Page_Load): Me.Master.EnablePersonalization = True
I can't seem to step into this code while debugging.
THis is what happens:
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:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Thanks in advance for any insight or help.
-s
anonymous store and forum use
slucas
0 Points
3 Posts
Re: Stumped. Server Error. Personalization is not enabled...
Oct 23, 2008 09:50 PM|LINK
A little more info. Not really. Doesn't do me any good. Apparently an unhappy webpart. At least i have it "handled" by error.aspx now.
Stepping into GetThreadsRss, everything is fine until i leave. Yet debugging isn't telling me anything. Same error for ShowFoums. BrowseThreads is fine.
wtf? This only happens if i am an anonymous user.
StackTrace: at System.Web.UI.WebControls.WebParts.WebPartPersonalization.EnsureEnabled(Boolean ensureModifiable) at System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrDeleteWebPart(WebPart webPart, Boolean delete) at System.Web.UI.WebControls.WebParts.WebPartManager.CloseOrphanedParts() at System.Web.UI.WebControls.WebParts.WebPartManager.OnPageLoadComplete(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Page.OnLoadComplete(EventArgs e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Source: System.Web
Message: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.
Url: http://localhost:50218/tbh_Web/ShowForums.aspx
slucas
0 Points
3 Posts
Re: Stumped. Server Error. Personalization is not enabled...
Nov 29, 2008 08:30 PM|LINK
adwaitchuri
Member
2 Points
1 Post
Re: Stumped. Server Error. Personalization is not enabled...
Dec 08, 2008 02:22 PM|LINK