I have installed IIS and .NET 4.0 on Windows Server 2003.

I have a web ready website that that targets .NET 4.0 and have updated the default website home directory to map to the website's directory.

When I visit the website in a web browser (localhost, localhost:80), I get a 404 error (File or directory not found).

Here is the IP address so you can see for yourself. http://72.45.244.92/

How do I get my ASP.NET 4.0 website to run?

link|improve this question

71% accept rate
feedback

2 Answers

up vote 1 down vote accepted

You need to install IIS before installing .NET 4.0. If IIS is installed after .NET 4.0, you need to use command prompt and run the aspnet_regiis tool located in the .net 4.0 directory.

link|improve this answer
feedback
  1. Did you install ASP.NET in the using the Add or Remove Programs dialog box on the Control Panel?
  2. In IIS Manager: did you allow the ASP.NET Web Service Extension?

See this Technet article about Installing ASP.NET (IIS 6.0).

link|improve this answer
1  
I had to allow the ASP.NET Web Service Extension. Thanks! – Paul Knopf Dec 31 '10 at 17:32
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.