Geeks With Blogs
BizTalk Blog by Chris Han System Design for Enterprise Agility,

I did my first webpart page following the article Building Web Parts, Part 2 by Wei-Meng Lee 

 I got this 'The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.' error when I try to switch to 'Design Mode' with my own SqlPersonalizationProvider. I think it's because the “personalization” has to be done under a registered user profile, so I logon as a registere user first before try this webpart part in design mode. Everything works as expected now.

I'm using my own SQL profile provider here is the config file:

  <anonymousIdentification
            enabled="true"
            cookieName=".ASPXANONYMOUS"
            cookieTimeout="43200"
            cookiePath="/"
            cookieRequireSSL="false"
            cookieSlidingExpiration="true"
            cookieProtection="All"
            cookieless="UseCookies"/>

  <profile  defaultProvider="mySqlProfileProvider" automaticSaveEnabled="true" enabled="true">
   <providers>
    <clear />
    <add name="mySqlProfileProvider"
    type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    connectionStringName="TelematicallLocalSqlServer"
    applicationName="mynet"
    />
   </providers>
   <properties>
    <add name="HasMigrated" type="System.Boolean" defaultValue="false"/>
    <add name="Culture" type="System.String" allowAnonymous="true" defaultValue="en-US"/>
    <add name="Theme" type="System.String" allowAnonymous="true" defaultValue="mynet"/>
    <add name="LastVisitPage" type="System.String" allowAnonymous="true" defaultValue=""/>
    <group name="PersonInfo">
     <add name="PalList" type="System.Collections.ArrayList"/>
     <add name="PersonId" type="System.Int32" defaultValue="" readOnly="false"/>
     <add name="FullName" type="System.String" defaultValue="" />
     <add name="AddressId" type="System.Int32" defaultValue="" readOnly="false"/>
    </group>
   </properties>
  </profile>

  <webParts>
   <personalization
      defaultProvider="mySqlPersonalizationProvider">
    <providers>
     <add name="mySqlPersonalizationProvider"
        type="System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider"
        connectionStringName="TelematicallLocalSqlServer"
        applicationName="mynet" />
    </providers>
    <authorization>
     <deny users="*" verbs="enterSharedScope" />
     <allow users="?" verbs="modifyState" />
    </authorization>
   </personalization>
  </webParts>

Posted on Wednesday, July 20, 2005 2:15 PM Asp.Net 2.0 | Back to top


Comments on this post: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
I've got the same error - did you ever figure out how to resolve this?
Left by SeanCon on Oct 05, 2005 11:05 AM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
In order for you to test this example, you need to be an authenticated user. The easiest way is to set <authentication mode="Windows" /> in Web.config.
Left by Wei-Meng Lee on Nov 03, 2005 7:03 PM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
Hi Guys,

I got the same issue and was able to fix it temporarily by doing the following...
1. Upgraded my OS!!!! :o) Well I needed IIS 6
2. Disabled anonymous access and enabled integrated Windows Aunthentication in hte virtual directory security setting
3. Set the authentication mode to <authentication mode="Windows" /> in the Web.Config
Left by rangas@virtusa.com on Dec 06, 2005 8:55 PM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
Entendi tudo. Valeu!
Left by Ronaldo on Apr 18, 2006 1:00 PM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
Is it really a solution of a problem when a user finds search.

This is not good. Every 1 who is working knows what the error, main thing is u should mention the solution if u have gone through b4.

evaluation=0

Please excuse....
Left by Dev on May 03, 2006 10:50 PM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
Sorry for not replying to you all.
Wei-Meng Lee made it clear though. You have to be an authenticated user! I tried using windows account, it works.
Left by Chis Han on May 09, 2006 12:58 AM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
when i created web site in http type not file system ,then i added web parts to the page and made the the display mode to design display mode.
the following error messge occured :
The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user
Left by Mohammad on May 24, 2006 1:25 AM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
Hi
When ur authentication mode is Windows then u are already loged in but when ur mode is Forms the u r by default not loged in to use the Design Mode u first Login using Login Controls.

I hope this Solve ur Problem.
I faced the same problem now its working fine.
Owais
Left by Owais on Jun 14, 2006 3:36 AM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
I had this exact same problem, except it showed itself in the form of each WebPartZone during design time showed the dropdown menu to the far right (Close, Minimize options). When I would run the app this menu did not show at all. I was pulling my hair out until I found this link. Thank you very much, Hammer
Left by Hammer on Nov 01, 2006 3:16 PM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
Glad it helps.
Left by Chris Han on Nov 01, 2006 9:45 PM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
<authentication mode="Windows" /> in Web.config
Left by Edwin on Feb 02, 2007 10:25 AM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Requesting Gravatar...
Why does this stop working after upgrading to AJAX 1.0?
Left by Michael on Apr 10, 2007 4:12 PM

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current
Requesting Gravatar...
Awesome job..! Thanks for the post. It solved my issue.
Left by Van on Jul 20, 2007 1:21 PM

# Disable personailation how?
Requesting Gravatar...
hi,
Iam using webparts all modes..in my page ..
i am geting
thiss errs

The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.

so i changed web.config as windows mode.. its working fine..


But i need forms authundication only...

and also i try lot of ways webpartmanager has personalization visible property but even its not working..


please give any ideas...
Left by pramod on Feb 20, 2009 4:14 AM

Your comment:
 (will show your gravatar)
 


Copyright © Chris Han | Powered by: GeeksWithBlogs.net | Join free