iis 8 - 404 Not Found error when running ServiceStack on IIS8 -


my servicestack web service works fine in iis express (vs 2012) , when deployed windows azure, not work under iis 8 on window 8.

i getting 404 not found error. web.config has both sections defined iis express , web server.

<?xml version="1.0" encoding="utf-8"?> <configuration>    <system.web>     <compilation debug="true" targetframework="4.5">       <assemblies>         <add assembly="system.web.webpages.razor, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />       </assemblies>       <buildproviders>         <add extension=".cshtml" type="servicestack.razor.csharprazorbuildprovider, servicestack.razor" />       </buildproviders>     </compilation>     <httpruntime targetframework="4.5" />   </system.web>   <system.webserver>     <validation validateintegratedmodeconfiguration="false" />     <handlers>       <add path="*" name="servicestack.factory" type="servicestack.webhost.endpoints.servicestackhttphandlerfactory, servicestack" verb="*" precondition="integratedmode" resourcetype="unspecified" allowpathinfo="true" />     </handlers>   </system.webserver> </configuration> 

solution:

just figured out, through further research, resolved problem:

  1. i switched application pool integrated mode.
  2. i added following web.config:

    <system.webserver>   <modules runallmanagedmodulesforallrequests="true"/>  </system.webserver> 

repeating solution answer, make clear issue was:


by doing more searching found 2 suggestions resolved problem:

  1. switched application pool integrated mode
  2. added following web.config

     <system.webserver> <modules runallmanagedmodulesforallrequests="true"/>  


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -