Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ServiceStack with IIS 7.5

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?

like image 693
vaclamar Avatar asked Oct 23 '12 12:10

vaclamar


1 Answers

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.

like image 142
kampsj Avatar answered Sep 28 '22 08:09

kampsj