廣告:
檢測到在集成的托管管道模式下不適用的 ASP.NET 設(shè)置-HTTP Error 500.22
HTTP Error 500.22 - Internal Server Error
最可能的原因:
此應(yīng)用程序在 system.web/httpModules 節(jié)中定義配置。
可嘗試的操作:
將配置遷移到 system.webServer/modules 節(jié)。也可以手動(dòng)這樣做,或通過在命令行中使用 AppCmd 來這樣做。例如,從 IIS Express 安裝目錄運(yùn)行 appcmd migrate config "Default Web Site/"。使用 AppCmd 遷移應(yīng)用程序?qū)⑹顾軌蛟诩赡J较鹿ぷ,并能繼續(xù)在經(jīng)典模式下和以前版本的 IIS 上工作。
如果您確信可以忽略此錯(cuò)誤,則可以通過將 system.webServer/validation@validateIntegratedModeConfiguration 設(shè)置為 false 來禁用它。
也可以將應(yīng)用程序切換到經(jīng)典模式應(yīng)用程序池。例如,從 IIS Express 安裝目錄運(yùn)行 appcmd set app "Default Web Site/" /applicationPool:"Clr4ClassicAppPool"。只有在無法遷移應(yīng)用程序時(shí)才這樣做。
Detailed Error Information:
Module ConfigurationValidationModule
Notification BeginRequest
Handler ExtensionlessUrlHandler-Integrated-4.0
Error Code 0x80070032
Requested URL http://localhost:53551/
Physical Path E:\aspnet2.0\53BK公司網(wǎng)站-net-家里\Mvcb2b
Logon Method 尚未確定
Logon User 尚未確定
More Information:
集成模式是在 IIS 7.0 及更高版本上運(yùn)行 ASP.NET 應(yīng)用程序的首選模式。
View more information ?
添加集成管道模式配置:
<system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true"> <add name="HttpImageModule" type="Mvccom.HttpImageModule,Mvccom"/> </modules> <handlers> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /> <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> <add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /> <add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> </handlers> </system.webServer>
廣告: