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:
- i switched application pool integrated mode.
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:
- switched application pool integrated mode
added following web.config
<system.webserver> <modules runallmanagedmodulesforallrequests="true"/>
Comments
Post a Comment