Personalization in webparts in asp.net(c#)

Discussion in 'ASP.NET / ASP.NET Core' started by amolr, Oct 14, 2011.

  1. We are facing problem while implementing the webparts in our web application. The concern application is working fine on local host but having problem while running it on server.

    we have used following namespaces :-

    Microsoft.Web.Preview.dll and Sample.Web.UI.WebParts.dll

    And

    our conection string is :-


    <add name="LocalSqlServer" connectionString="Data Source=servername;Initial Catalog=aspnetdb;User ID=username;Password=Password;" providerName="System.Data.SqlClient" />


    we are getting error message like this :-

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



    Please kindly help us if some one knows solution.

    Thanks.
     
  2. Do you have a URL we might be able to look at and see the entire error message?
     
  3. make sure the connection string reference the live database and the scope is shared for all users

    <webParts>
    <personalization>
    <authorization>
    <allow users="[Replace the text and brackets with a user name or group.]" roles="admin" verbs="enterSharedScope" />
    </authorization>
    </personalization>
    </webParts>

    see the MSDN article here
    http://msdn.microsoft.com/en-us/lib....webparts.webpartmanager.personalization.aspx
     

Share This Page