ServiceStack与IIS 7.5(ServiceStack with IIS 7.5)

编程入门 行业动态 更新时间:2024-10-24 16:29:40
ServiceStack与IIS 7.5(ServiceStack with IIS 7.5)

我使用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 -i

See the article in comments that vaclamar found.

更多推荐

本文发布于:2023-08-01 18:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1362859.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:ServiceStack   IIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!