An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode(已检测到不适用于集成托管管道模式的 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/"
. UsingAppCmd
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 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:已检测到不适用于集成托管管道模式的 ASP.NET 设置
基础教程推荐
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- rabbitmq 的 REST API 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- c# Math.Sqrt 实现 2022-01-01