S
SlimFlem
I am new to the WebPartManager stuff and am still learning how to set
this up properly. I am creating instances of WebPart classes from
loaded DLLs and add them to the Page's WebPartManager. If I don't have
this property set on the WebPartManager:
Personalization-Enabled="false", the page will hang and not load. If I
do have this, then I get the following exception:
===
System.InvalidOperationException was unhandled by user code
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."
Source="System.Web"
StackTrace:
at
System.Web.UI.WebControls.WebParts.WebPartPersonalization.EnsureEnabled(Boolean
ensureModifiable)
at
System.Web.UI.WebControls.WebParts.WebPartManager.AddWebPart(WebPart
webPart, WebPartZoneBase zone, Int32 zoneIndex)
at BWC.PublicSite.WebSite.PageLoader.PageLoader_Load(Object
sender, EventArgs e) in
c:\code\BWC.PublicSite2\BWC.PublicSite.WebSite\Members\PageLoader.aspx.cs:line
80
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
===
I thought a default PersonalizationProvider was provided for you by the
WebPartManager and I did not need to create one.
Why would my page hang when I do not have the above mentioned property
on the WebPartManager?
Thanks for any help.
this up properly. I am creating instances of WebPart classes from
loaded DLLs and add them to the Page's WebPartManager. If I don't have
this property set on the WebPartManager:
Personalization-Enabled="false", the page will hang and not load. If I
do have this, then I get the following exception:
===
System.InvalidOperationException was unhandled by user code
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."
Source="System.Web"
StackTrace:
at
System.Web.UI.WebControls.WebParts.WebPartPersonalization.EnsureEnabled(Boolean
ensureModifiable)
at
System.Web.UI.WebControls.WebParts.WebPartManager.AddWebPart(WebPart
webPart, WebPartZoneBase zone, Int32 zoneIndex)
at BWC.PublicSite.WebSite.PageLoader.PageLoader_Load(Object
sender, EventArgs e) in
c:\code\BWC.PublicSite2\BWC.PublicSite.WebSite\Members\PageLoader.aspx.cs:line
80
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
===
I thought a default PersonalizationProvider was provided for you by the
WebPartManager and I did not need to create one.
Why would my page hang when I do not have the above mentioned property
on the WebPartManager?
Thanks for any help.