Created
March 6, 2013 16:35
-
-
Save paaschpa/5100697 to your computer and use it in GitHub Desktop.
Web.config.bad causes 'ServiceStack.Factory' error when making request to /servicestack/hello in ServiceStack.Hello example project running under IISExpress in Classic mode. Web.config.good runs successfully after adding '.aspx' extenstions to ServiceStack routes and making request to /servicestack/hello.aspx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<!-- ServiceStack: Required to host at: /servicestack --> | |
<location path="servicestack"> | |
<system.web> | |
<httpHandlers> | |
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/> | |
</httpHandlers> | |
</system.web> | |
<!-- Required for IIS7 --> | |
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="true"/> | |
<validation validateIntegratedModeConfiguration="false" /> | |
<handlers> | |
<add path="*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" | |
verb="*" preCondition="classicMode" resourceType="Unspecified" allowPathInfo="true" /> | |
</handlers> | |
</system.webServer> | |
</location> | |
<!-- Required for MONO --> | |
<system.web> | |
<httpHandlers> | |
<add path="servicestack*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/> | |
</httpHandlers> | |
</system.web> | |
<!-- Required for IIS7 --> | |
<system.webServer> | |
<!-- ServiceStack: Required --> | |
<validation validateIntegratedModeConfiguration="false"/> | |
</system.webServer> | |
</configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<location path="servicestack"> | |
<system.web> | |
<httpHandlers> | |
<add path="*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/> | |
</httpHandlers> | |
</system.web> | |
<!-- Required for IIS7 --> | |
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="true"/> | |
<validation validateIntegratedModeConfiguration="false" /> | |
<handlers> | |
<add path="servicestack*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" | |
verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" /> | |
</handlers> | |
</system.webServer> | |
</location> | |
<system.web> | |
<httpHandlers> | |
<add path="servicestack*" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*"/> | |
</httpHandlers> | |
<compilation debug="true"/> | |
</system.web> | |
<!-- Required for IIS7 --> | |
<system.webServer> | |
<!-- ServiceStack: Required --> | |
<validation validateIntegratedModeConfiguration="false"/> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment