ServiceStack with IIS 7.5

☆樱花仙子☆ 提交于 2019-11-30 19:24:34

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!