带有IIS 7.5的ServiceStack [英] ServiceStack with IIS 7.5

查看:52
本文介绍了带有IIS 7.5的ServiceStack的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了带有IIS 7.5的Clean Windows Web Server 2008 R2 64位.我创建了.NET v4.0应用程序池和该池中的网站,并在其中部署了带有ServiceStack服务的应用程序. 打开servicestack页面时,我在Web浏览器中收到此错误消息.

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.

我的应用程序正在Visual Studio托管的IIS服务器中工作. 可能是IIS 7.5安装和服务堆栈出现问题,还是asp.net出现问题?

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中

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>

http://www.servicestack.net/ServiceStack.Hello/

2)如果仍然无法正常运行,请尝试运行此命令

2) If still not working then try running this command

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

请参阅vaclamar发现的评论中的文章.

See the article in comments that vaclamar found.

这篇关于带有IIS 7.5的ServiceStack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆