Partilhar via


Azure AppFabric : Two possible errors and troubleshooting

Azure AppFabric Access Control is an easy to implement feature. While I was trying to add it to one of my applications, I found two show stopping errors.

1. A potentially dangerous Request.Form value was detected from the client (wresult="<t:RequestSecurityTo...").

To solve you need to do two things

a. Add below to Web.Config under <System.web>

<

httpRuntime requestValidationMode="2.0" />

b. Add to <% @page of your .aspx page ValidateRequest="false"

2. Another could be due to issue of loading user profile.

Find out the Application Pool of your website in IIS.

image

From the IIS’s right side tree node open that App Pool. Go to Advanced settings of the app pool (here ASP.NET v4.0) and change the Load User Profile to True.

image

Namoskar!!!

Comments

  • Anonymous
    March 06, 2011
    Hi Wriju, Yesterday i attended your session in TecEd. I tried to use the ACS in my application (using Windows Identity Foundation). I did everything, but while running the application im getting below error. Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance. Can you please help me regarding the same.

  • Anonymous
    March 07, 2011
    Hello Satheesh, Please check all your bits are updated and your application is running under local IIS (not on development environment). Please follow it step by step www.microsoft.com/.../details.aspx