Requests for any .aspx files return a 404

October 3, 2008

I’ve just had to de-install and re-install IIS on my development VM (Windows Server 2003, IIS 6). After doing so, I noticed that any requests for a .ASPX returned a 404 – Requests for images, html files etc were AOK. I then rememered that ASP.Net is of course an add-on to Windows Server 2003, so re-installing IIS resulted in loss of .Net functionality.

The solution was in two parts:

1) Open a command prompt, run ‘aspnet_regiis -i’ This will install ASP.Net onto Internet Information server.
(aspnet_regiis.exe is located in c:\windows\Microsoft.NET\Framework\v2.0.50727)

2) Open IIS management console, under ‘Services and Applications’ expand ‘Internet Information Server’ then click on ‘Web Service Extensions’. You should see, on the right hand side a list of available extensions – These are file extensions associations to binaries/executables. Hopefully one of the options (that would not have been visible prior to completing step 1) will be ASP.Net v2.0.50727 – Click on this, then click ‘Allow’

All being well, ASP.Net web forms (.aspx files) will now execute.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: