title: Web API IIS deployment and 403 errors
body: <p>I have managed to create a deployment package and install it on IIS. It is not serving content correctly.</p>
  
  <p>The server responds appropriately when trying to hit URLs that would not be routed to the Web API application, or when the request doesn't make sense. For instance, trying to hit a non existent url gives a 404, or making a GET request to a route that only supports POST returns 405 method not allowed with this message:</p>
  
  <pre><code>{
     "Message": "The requested resource does not support http method 'GET'."
  }
  </code></pre>
  
  <p>All other requests are giving 403 forbidden errors. To me, this indicates routing is working correctly and there is some other configuration error. I've tried both the 'bad' and 'good' solutions listed here: <a href="http://www.britishdeveloper.co.uk/2010/06/dont-use-modules-runallmanagedmodulesfo.html" rel="nofollow noreferrer">http://www.britishdeveloper.co.uk/2010/06/dont-use-modules-runallmanagedmodulesfo.html</a>, neither made any difference.</p>
  
  <p>I noticed that the application has not created the user database tables, as it did automatically when I ran the application for the first time. I figured this may be related.</p>
  
  <p>I believe IIS is correctly configured; it has .NET 4 and integrated mode for the application pool. I have confirmed that ASP.NET 4.5 is installed via the Add/Remove Windows Features dialog.</p>
  
  <p>The application I am trying to host is based on: <a href="https://github.com/MikeWasson/LocalAccountsApp" rel="nofollow noreferrer">https://github.com/MikeWasson/LocalAccountsApp</a>. I have made very minimal changes. Everything works fine locally.</p>
  
  <p>Server stats:</p>
  
  <ol>
  <li>Windows Server 2012 R2 </li>
  <li>SQL Server 2016 </li>
  <li>IIS 8.5</li>
  </ol>