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

后端 未结 5 893
轮回少年
轮回少年 2021-02-02 11:16

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

相关标签:
5条回答
  • 2021-02-02 11:38

    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.

    0 讨论(0)
  • 2021-02-02 11:38

    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'

    0 讨论(0)
  • 2021-02-02 11:40

    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.

    0 讨论(0)
  • 2021-02-02 11:43

    please add web.config

     <configuration>
     <system.webServer>
     <validation validateIntegratedModeConfiguration="false"/> 
    </system.webServer> 
    </configuration>
    
    0 讨论(0)
  • 2021-02-02 11:54

    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 讨论(0)
提交回复
热议问题