title: IIS 10 on Windows Server 2016 not running my ASP.NET MVC website
body: <p>I just bought a new Cloud based Virtual machine with Windows server 2016 installed. I also make sure IIS 10 has .NET Framework 4.6 and ASP.NET 4.6 installed. </p>
  
  <p><a href="https://i.stack.imgur.com/K7zjk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/K7zjk.png" alt="enter image description here"></a></p>
  
  <p>My ASP.NET MVC application targets .NET 4.5 and is successfully published to the 'Default Web Site' on this server using Web deploy. (You can see all the asp.net mvc published files here) </p>
  
  <p><a href="https://i.stack.imgur.com/5bPxQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5bPxQ.png" alt="enter image description here"></a></p>
  
  <p>'Default Web Site' uses 'DefaultAppPool' which has a v4.0 .NET CLR Version.</p>
  
  <p>But when I open the web page in my browser, I received a '403 - Forbidden: Access is denied.' error. I did my research, to me it looks like the IIS never tried to open it as a ASP.NET MVC application. It simply tries to find a physical file with the same name as 'controller/Action'.html and of course it couldn't find it. Solutions I have tried with:</p>
  
  <ol>
  <li><p>There's another post mentioning the 'UrlRoutingModule-4.0' in IIS Modules configuration. In my case, the routing module is not there for some reason. I added it, but nothing changes. Furthermore, every time I republish the website from VS, the module disappears after the deployment succeeds. </p></li>
  <li><p>I also tried adding <code>&lt;modules runAllManagedModulesForAllRequests="true"/&gt;
  </code>   to my webconfig file, no luck either. </p></li>
  <li><p>Run aspnet_regiis -ir on the server. It says the command can't be run on this operating system but still run it anyway. However, the problem is still there. </p></li>
  </ol>