Quantcast
Channel: Troubleshooting
Viewing all articles
Browse latest Browse all 1814

MVC randomly stops routing and IIS starts serving directory listing

$
0
0

Looking for any suggestions or guidance from anyone who may have run into this issue before. I'm experiencing this issue on Windows Server 2008 R2, 2012, and 2012 R2. The MVC web application is deployed as a pre-compiled application targeting .NET 4.7.2. When deployed, IIS and the application function as expected. Everything serves properly.

After a random period of time, IIS no longer attempts to route the MVC application and instead attempts to serve the root directory. This results in a 403 because directory listing is denied. Any attempt to browse to a known, previously "good" route returns a 404. There are no errors or warnings in the IIS logs. There are no errors or warnings in Event Viewer. In addition, restarting the site in IIS will trigger the issue.

The following actions will not fix the issue:

  • Modifying the web.config
  • Restarting the site
  • Recycling the Application Pool
  • Restarting IIS
  • Rebooting the server

So far, the only thing that I have found will force IIS to once again serve the site properly is performing a redeploy of the application.

Thoughts or suggestions?

Thank you.


Viewing all articles
Browse latest Browse all 1814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>