BizTalk Blog by Chris Han

System Design for Enterprise Agility,

  Home  |   Contact  |   Syndication    |   Login
  68 Posts | 9 Stories | 173 Comments | 79 Trackbacks

News

Article Categories

Archives

Post Categories

Image Galleries

BizTalk Bloggers

BizTalk on MSDN

Patterns & Architecture

SharePoint

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>

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Wednesday, July 20, 2005 2:15 PM

Feedback

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

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 11/3/2005 7:03 PM Wei-Meng Lee
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.


# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 12/6/2005 8:55 PM rangas@virtusa.com
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

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

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 5/3/2006 10:50 PM Dev
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....


# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 5/9/2006 12:58 AM Chis Han
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.

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 5/24/2006 1:25 AM Mohammad
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

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 6/14/2006 3:36 AM Owais
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

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 11/1/2006 3:16 PM Hammer
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

# re: webpart: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user. 11/1/2006 9:45 PM Chris Han
Glad it helps.

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

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

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

# Disable personailation how? 2/20/2009 4:14 AM pramod
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...


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: