首页 > 编程知识 正文

asp.net 跨域身份认证失效,snow white and the seven dwarfs

时间:2023-05-05 00:03:28 阅读:264500 作者:3596

HTTP 错误 500.22 - Internal Server Error

检测到在集成的托管管道模式下不适用的 ASP.NET 设置。

 

出现错误时浏览图:

 

 

处理方式有两种:

1.在IIS中将管道托管模式改成“经典”

如图:

 

 

2:修改web.config配置。(本人建议用第二种)

(1).在system.web配置中添加配置

  <system.web>      

    <compilation debug="true" targetFramework="4.5" />   

     <httpRuntime targetFramework="4.5" />   

     </system.web>  

 

(2).

在web.config中找到节点<system.webServer>

如果没有就在<configuration>节点下创建一个这样的节点.

其次:在 <system.webServer> 节点下插入配置,配置如下。

   <system.webServer>  

         <validation validateIntegratedModeConfiguration="false" />

   </system.webServer>

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。