Hi All,
I am facing the problem, when I am selecting"Edit" from dropdown, In that case webpart manager is generating the error:
"
The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.ArgumentException: The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Parameter name: valueSource Error:
Line 118: this.WebPartManager1.DisplayMode = WebPartManager.EditDisplayMode;
"
Can anyone help for enable the personalization in the page...
Thanks in Advance
Namith
![]() |
0 |
![]() |
Have you installed SQLExpress in your machine? Also be sure to set Authentication mode in your web config like:
<authentication mode="windows" />
<authorization>
<allow users="*" />
<deny users="?" />
</authorization>
You may also look here for a simple demo on WebParts in ASPNET.
Regards,Vinz
"Code, Beer and Music" that's my way of being a programmer!
How to get your Forum Question Answered | Blog | CodeASP.NET
![]() |
0 |
![]() |
Hi...
I had tried by putting the <authorization> tag...
It is working in my m/c...... but when I am deploying the page in MSCRM application it is giving me the same error....
" The specified display mode is currently disabled on this page. Make sure personalization is enabled for the current user.
Parameter name: valuethis.WebPartManager1.DisplayMode = WebPartManager.EditDisplayMode;
"
Can you please let me the what will be the problem or solution ?
Thanks
Namith
![]() |
0 |
![]() |
Have you share the scope for all users? Check this code,
<webParts> <personalization defaultProvider="SqlPersonalizationProvider"> <providers> <add name="SqlPersonalizationProvider" type="System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider" connectionStringName="AspNetDBConnectionString" applicationName="MSWebParts"/> </providers> <authorization> <allow users="*" verbs="enterSharedScope"/> <allow users="*" verbs="modifyState"/> </authorization> </personalization> </webParts> To know more, please check this link,http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webpartmanager.personalization.aspx
Hong-Gang Chen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
![]() |
0 |
![]() |
do this tooo
Just perform 2 steps to use custom authentication.
1. Modify web.config for using Forms authentication mode as "Forms"
<authentication mode="Forms" >
2. Once you identify a user as valid (may be by checking from database or any other means), execute following line of code.
FormsAuthentication.SetAuthCookie("<string:username>", <bool:persistenceCookie>);
e.g. FormsAuthentication.SetAuthCookie("John_Smith", false);
The above code automatically updates Webparts for specified username.
a greate url is here
http://forums.asp.net/p/1031364/1415959.aspx
Thanks Najka
![]() |
0 |
![]() |