Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm deploying a website under a virtual directory using IIS. For some strange reason, Default.html works, but Default.aspx throws a 404.

I have tried these:

  • There's another virtual directory that contains an older version of the application and that one just works. I checked the properties of each virtual directory and they looked the same.
  • I checked that the root didn't had any extra backslashes
share|improve this question

I think you can use the tool: aspnet_regiis.exe to reinstall script maps for IIS. Remember to completly reset IIS by using command: iisreset.

Document here:

share|improve this answer

A 404 error will be thrown for any file extension that is not registered with a MIME type (ie: data) or a server side handler (ie: code). Try running aspnet_regiis.exe -i -enable to make sure that ASP.NET is registered with IIS and that it is enabled as a web extension.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.