Some time ago I published a blog describing the use of a command line tool called aspnet_regiis.exe to overcome a “Server Application Unavailable” message when I was trying to get ASP.NET working on IIS 6 on Windows XP.
Just now I’ve used the same tool to fix a similar (I think) problem on IIS7 on Vista. I was trying to get some practice with ASP.NET. I’ve already got IIS7 and I’ve already got the .NET Framework 2.0 installed. However it seemed, again, that IIS wasn’t aware of the Framework’s existence. When I tried to browse to a simple Hello World page I was greeted with an HTTP 404 (404.3 to be precise) informing me that:
“The page you are requesting cannot be served because of the extension configuration. If the p age is a script, add a handler. If the file should be downloaded, add a MIME map.”
Despite the different error messages it appeared to be a similar problem. Apparently it was. That wonderful little solution again:
- Start -> Cmd
- Navigate to your .NET Framework directory (e.g. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727)
- Run the command “aspnet_regiis.exe -i”
- Wait…