检测到不适用于集成托管管道模式的 ASP.NET 设置 [英] An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode

查看:27
本文介绍了检测到不适用于集成托管管道模式的 ASP.NET 设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 DotNetOpenAuth SDK-3.4.5.10201.vsix,但无法正常工作.它在本地工作(当我作为本地主机运行时)但是当我尝试发布它时它不起作用.

我得到的 IIS 错误消息是

<块引用>

错误摘要
HTTP 错误 500.22 - 内部服务器错误
检测到不适用于集成托管管道模式的 ASP.NET 设置.

<块引用>

模块配置验证模块通知开始请求处理程序静态文件错误代码 0x80070032

然后有一些关于如何解决问题的建议:

你可以尝试的事情:

<块引用>
  • 将配置迁移到system.webServer/modules 部分.你可以手动或使用 AppCmd 执行此操作从命令行 - 例如,<代码>%SystemRoot%system32inetsrvappcmd迁移配置默认网站/".使用 AppCmd 迁移您的应用程序将使其能够在集成模式,继续工作在经典模式和以前的IIS 的版本.

  • 如果您确定可以忽略这个错误,它可以被禁用通过设置system.webServer/validation@validateIntegratedModeConfiguration为假.

  • 或者,切换应用程序到经典模式应用程序池 -例如,<代码>%SystemRoot%system32inetsrvappcmd设置应用程序默认网站/"/applicationPool:"经典.NETAppPool".只有在您是无法迁移您的应用程序.
    (将默认网站"和经典 .NET AppPool"设置为您的应用程序路径和应用程序池名称)

但问题是我无权访问 ISS 服务器,因为我不是它的所有者.有什么办法可以解决这个问题吗?

解决方案

2nd 选项就是您想要的.

在您的 web.config 中,确保这些键存在:

<system.webServer><validation validateIntegratedModeConfiguration="false"/></system.webServer></配置>

I Installed DotNetOpenAuth SDK-3.4.5.10201.vsix and I can't get it working. It works locally (when I run as localhost) but when i try to publish it ain't working.

The IIS error message I get is

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

AND

Module       ConfigurationValidationModule  
Notification BeginRequest  
Handler      StaticFile  
Error Code   0x80070032  

then there are some suggestions on how to solve the problem:

Things you can try:

  • Migrate the configuration to the system.webServer/modules section. You can do so manually or by using AppCmd from the command line - for example, %SystemRoot%system32inetsrvappcmd migrate config "Default Web Site/". Using AppCmd to migrate your application will enable it to work in Integrated mode, and continue to work in Classic mode and on previous versions of IIS.

  • If you are certain that it is OK to ignore this error, it can be disabled by setting system.webServer/validation@validateIntegratedModeConfiguration to false.

  • Alternatively, switch the application to a Classic mode application pool - for example, %SystemRoot%system32inetsrvappcmd set app "Default Web Site/" /applicationPool:"Classic .NET AppPool". Only do this if you are unable to migrate your application.
    (Set "Default Web Site" and "Classic .NET AppPool" to your application path and application pool name)

But the problem is that I don't have access to the ISS server as I am not the owner of it. Is there any way to solve this?

解决方案

The 2nd option is the one you want.

In your web.config, make sure these keys exist:

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

这篇关于检测到不适用于集成托管管道模式的 ASP.NET 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆