My Windows Server 2003 Std server refuses to server ASP.NET content. It serves regular html just fine but anything .net, even a one line html file with an ASPX extention fails silently.
Things I've tried:
- Nothing in the event log or IIS WWW logs when it fails.
- Fiddler shows no response
- I reinstalled .NET with
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -U
- C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -I
- I give obscenely high permissions on everything I can think of (full control, read, write, etc.) to all possibly relevant users (IUSER*, ASP.NET, etc.).
- I confirmed that ASP.Net v1 and v2 Web Service Extensions are "allowed" in IIS
- Confirmed that the Server Manager had IIS and ASP.Net roles enabled
Again: this is the scenario:
- http://localhost/Test/Default.htm <-- Works great!
- http://localhost/Test/Default.aspx <-- Bombs silently with no message at all
Any guidance will be much appreciated!
Solution: I reinstalled per the instructions below and it works now. Thanks all!
I've run into this exact issue several times, and every time, the solution was to:
I spent hours debugging this at a client site once, and that was the trick. Since then, every time this has happened, this was the fix.
I'm not sure what the root cause is, but we tore the IIS configuration apart once trying to figure it out, and even had Microsoft RDC'ing into the server in question for 2 or 3 hours, and they couldn't help either.
So I write it off as an undocumented bug in ASP.NET/IIS.
Try this: http://localhost/blah.aspx (should be a non-existent page). If it gives you a 404 instead of the asp.net error page then asp.net isn't running, if it gives you a 403 error then the permissions for the site are wrong.
Here's a checklist that may help:
Is ASP.NET installed and registered?
Is ASP.NET running?
Check the "ASP.NET" tab in your web site's properties. Make sure it's using the right version.
Check the "Home Directory" tab in your site's properties, check the "Execute Permissions" setting, it should be set to allow scripts. Also check the "Web Service Extensions" to make sure asp.net is allowed to run.
Open the IIS manager, click on Web Service Extensions folder in left pane. Then click on the ASP.NET Extension in the right pane and click Allow button.
You don't need to uninstall/reinstall IIS to re-establish .net support, per the previous answer. Just run the aspnet_regiis.exe utility that is located in the appropriate framwork folder, e.g.: