我使用IIS 7.5安装了Clean Windows Web Server 2008 R2 64位。 我在这个池中创建了.NET v4.0应用程序池和Web站点,在这里我使用ServiceStack服务部署了我的应用程序。 当我打开服务堆页面时,我在Web浏览器中收到了此错误消息:
HTTP Error 500.21 - Internal Server Error Handler "ServiceStack.Factory" has a bad module "ManagedPipelineHandler" in its module list.我的应用程序在Visual Studio托管的IIS服务器上工作。 可能是IIS 7.5安装和服务堆的问题,或者是一些asp.net的问题?
I installed Clean Windows Web Server 2008 R2 64-bit with IIS 7.5. I created .NET v4.0 application pool and Web Site in this pool, where I deployed my application with ServiceStack services. I got this error message in web browser when I opened servicestack page.:
HTTP Error 500.21 - Internal Server Error Handler "ServiceStack.Factory" has a bad module "ManagedPipelineHandler" in its module list.My application is working in Visual studio hosted IIS server. Can be problem with IIS 7.5 instalation and servicestack or it is some asp.net issue?
最满意答案
1)确保web.config中包含以下内容
<!-- Required for IIS 7.0 --> <system.webServer> <handlers> <add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" /> </handlers> </system.webServer>复制自http://www.servicestack.net/ServiceStack.Hello/
2)如果仍然不能正常工作,请尝试运行此命令
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i请参阅vaclamar发现的评论文章。
1) Ensure the following is in the web.config
<!-- Required for IIS 7.0 --> <system.webServer> <handlers> <add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" /> </handlers> </system.webServer>copied from http://www.servicestack.net/ServiceStack.Hello/
2) If still not working then try running this command
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -iSee the article in comments that vaclamar found.
更多推荐
发布评论