My Technical Notes

Thursday, 16 February 2017

Getting a Web API Working in IIS

1. Set the generated App Pool to be v4 of the .NET Framework.

2. In the Web.config, add the following element inside the `system.webServer` element:


<modules>
    <remove name="UrlRoutingModule-4.0" />
    <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
</modules>

No comments: