我收到错误:
HTTP错误500.21 - 内部服务器错误处理程序CloudConnectHandler在其模块列表中有一个错误的模块ManagedPipelineHandler
HTTP Error 500.21 - Internal Server Error Handler "CloudConnectHandler" has a bad module "ManagedPipelineHandler" in its module list
我的web.config文件如下所示:
my web.config file looks like this:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="CloudConnectHandler" verb="*" path="CloudConnect.aspx" type="CloudConnectHandler" resourceType="Unspecified" /> </handlers> </system.webServer> <system.web> <customErrors mode="Off" /> <compilation debug="true" targetFramework="4.0" batch="false"> <assemblies> <add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /> <add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" /> </assemblies> </compilation> <pages> <controls> <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /> </controls> </pages> <identity impersonate="true" /> <authentication mode="Forms" /> </system.web> <system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <providerOption name="CompilerVersion" value="v4.0" /> <providerOption name="WarnAsError" value="false" /> </compiler> </compilers> </system.codedom> <appSettings> <add key="CloudConnectAuthorization" value="xxxx" /> <add key="ConnectionInfo" value="xxxx" /> <add key="ConnectionString" value="xxxx" /> <add key="DefaultChannel" value="xxxx" /> <add key="LoginValidationConnectionString" value="xxxx" /> </appSettings> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="protobuf-net" publicKeyToken="257b51d87d2e4d67" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.0.0.640" newVersion="2.0.0.640" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>有很多建议表明asp安装不正确。通常的解决方法是运行:
There is a lot of advice out there indicating that asp is not installed correctly. The usual fix is to run:
%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i或
%windir%\Microsoft.NET\Framework\v4.0.21006\aspnet_regiis.exe -i我已经运行了两个,没有任何错误。我已重新启动IIS,但问题仍然存在。该站点正在使用应用程序池。应用程序池已启动, framework = 4.0,Managed Pipeline = Classic,Identity = LocalSystem。
I have run both, without any errors. I have restarted IIS, but the problem still persists. The site is using an application pool. The app pool is started, framework = 4.0, Managed Pipeline = Classic, Identity = LocalSystem.
我花了最后几个小时试图弄清楚是什么问题是。我希望有人可以提供帮助。
I've spent the last couple hours trying to figure out what the problem is. I'm hoping someone can help.
推荐答案尝试切换到集成模式。请参阅以下主题:
Try switching to Integrated mode. See the following thread:
IIS 7,HttpHandler和HTTP错误500.21
更多推荐
500.21错误的模块“ManagedPipelineHandler”在其模块列表中
发布评论