<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Web Parts and Personalization</title><link>http://forums.asp.net/145.aspx</link><description>Discussions of the new ASP.NET 2.0 portal framework.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=167&amp;c=30" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Trouble moving web parts from one zone to another.</title><link>http://forums.asp.net/thread/1092852.aspx</link><pubDate>Tue, 25 Oct 2005 13:43:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1092852</guid><dc:creator>timiscool999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1092852.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=145&amp;PostID=1092852</wfw:commentRss><description>Ahh very tricky :).&amp;nbsp; Found a subtle bug in my code.&amp;nbsp; But yes, thank you Helen, that did the trick!&lt;br&gt;
&lt;br&gt;
Tim&lt;br&gt;
&lt;br&gt;</description></item><item><title>Re: Trouble moving web parts from one zone to another.</title><link>http://forums.asp.net/thread/1092328.aspx</link><pubDate>Tue, 25 Oct 2005 00:04:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1092328</guid><dc:creator>helenyan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1092328.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=145&amp;PostID=1092328</wfw:commentRss><description>Is it possible that&amp;nbsp;the current user is not authenticated?&amp;nbsp;Are you using Forms or Windows auth? Can you&amp;nbsp;check the values of&amp;nbsp;Page.User.Identity.IsAuthenticated and Page.User.Identity.Name? When the current user is not authenticated, the Personalization scope will be defaulted to "Shared" and the current user does not have the permission to modify personalization state.&lt;BR&gt;&lt;BR&gt;Hope that helps.&lt;BR&gt;Helen</description></item><item><title>Trouble moving web parts from one zone to another.</title><link>http://forums.asp.net/thread/1090097.aspx</link><pubDate>Fri, 21 Oct 2005 16:26:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1090097</guid><dc:creator>timiscool999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1090097.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=145&amp;PostID=1090097</wfw:commentRss><description>Hi.&amp;nbsp; I'm sorry to post such a vague question, but I hope someone
can at least tell me where to start looking to narrow down the problem
I'm having.&lt;br&gt;
&lt;br&gt;
I have code that moves a web part on a post back.&amp;nbsp; It used to work
before so I'm not sure where the regression is (or if something changed
in the .NET framework with the RC0 release), but I'm getting the
following stack trace when I call WebPartManager.MoveWebPart():&lt;br&gt;
&lt;br&gt;
&lt;table bgcolor="#ffffcc"&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre&gt;[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.]&lt;br&gt;   System.Web.UI.WebControls.WebParts.WebPartPersonalization.EnsureEnabled(Boolean ensureModifiable) +145&lt;br&gt;   System.Web.UI.WebControls.WebParts.WebPartManager.MoveWebPart(WebPart webPart, WebPartZoneBase zone, Int32 zoneIndex) +46&lt;br&gt;   edu.depaul.cti.col.COLCoreWebControls.WebParts.COLWebPartZone.MinimizeWebPart(WebPart webPart) in C:\devroot\colweb2\ColWeb2\COLCoreWebControls\WebParts\COLWebPartZone.cs:103&lt;br&gt;   edu.depaul.cti.col.COLCoreWebControls.WebParts.COLWebPartZone.RaisePostBackEvent(String eventArgument) in C:\devroot\colweb2\ColWeb2\COLCoreWebControls\WebParts\COLWebPartZone.cs:283&lt;br&gt;   System.Web.UI.WebControls.WebParts.WebPartZoneBase.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7&lt;br&gt;   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11&lt;br&gt;   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +172&lt;br&gt;   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4921&lt;br&gt;&lt;/pre&gt;

                  &lt;/td&gt;
               &lt;/tr&gt;
            
&lt;/table&gt;


            &lt;br&gt;


            
&lt;hr&gt;

            &lt;b&gt;Version Information:&lt;/b&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.26; ASP.NET Version:2.0.50727.26&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I've tried manually connecting to the personalization database with an
SqlConnection object using the query string that the Personalization
provider is using, and I can insert records into that database with an
SqlCommand object.&amp;nbsp; This would indicate to me that there aren't
any problems actually connecting to the database.&lt;br&gt;
&lt;br&gt;
When I look at the WebPartManager.Provider object in the debugger, it's
set to "Shared" scope.&amp;nbsp; Now in my code I set the
WebPartManager.InitialScope to "User", but somewhere it gets
changed.&amp;nbsp; I don't have any code in my project where I set it to
"Shared", so how would it be reverting back to "Shared"?&lt;br&gt;
&lt;br&gt;
What else can I look for to see where this is going wrong?&amp;nbsp; What
else could I be forgetting that I need to enable for web parts
personalization to work?&lt;br&gt;
&lt;br&gt;
Thanks for any help!&lt;br&gt;
&lt;br&gt;</description></item></channel></rss>