24
votes

I have webpage which has gridview, one of the columns will have a image. When clicked on image it will open the PDF saved on the web server. It was working fine but I am getting below error

"HTTP Error 55.24 - Internal Server Error An Asp.NET setting has been detected that does not apply in Integrated managed pipeline mode."

I googled and did as suggested in HTTP Error 500.22 - Internal Server Error (An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.) made sure application pool is classic and webconfig is correct but still I am getting that error when clicked on image which has to open the saved PDF... please help....

enter image description here

5

5 Answers

62
votes

Your error is specifically to do with 'client impersonation'. I had the same error on one machine but not on another. By comparing settings I worked out the difference.

Start IIS Manager. Select the server in the left pane and double click 'Authentication' under the IIS group in the central pane. Select ASP.NET Impersonation and select 'Disable' at the top of the right pane.

8
votes

please add web.config

 <configuration>
 <system.webServer>
 <validation validateIntegratedModeConfiguration="false"/> 
</system.webServer> 
</configuration>
1
votes

I changed in my application pool running the site. "Managed Pipline Mode" from integrated to classic.

right click on your application pool -> basic settings.

0
votes

One may get this error when accessing a wrong path (e.g., on the url parameter of an Ajax call), even though all of the other answers suggestions were handled.

For the correct usage of (relative) paths, see this answer.

-2
votes

Your error is specifically to do with 'client impersonation'. I had the same error on one machine but not on another. By comparing settings I worked out the difference.

Start IIS Manager. Select the server in the left pane and double click 'Authentication' under the IIS group in the central pane. Select ASP.NET Impersonation and select 'Disable' at the top of the right pane.

Then, select the virtual directory and select the 'Authentication'. Anonymous Auth gonna be 'Enabled'