已检测到不适用于集成托管管道模式的 ASP.NET 设置

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode(已检测到不适用于集成托管管道模式的 ASP.NET 设置)
本文介绍了已检测到不适用于集成托管管道模式的 ASP.NET 设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

我得到的 IIS 错误消息是

<块引用>

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

<块引用>

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

那么有一些关于如何解决问题的建议:

你可以尝试的事情:

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

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

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

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

解决方案

第二个nd 选项是你想要的.

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

<配置><system.webServer><验证 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 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)