Visual Studio .NET 2003 won't create a new web application

cyberia

Platinum Member
Oct 22, 1999
2,535
0
0
I am installing VS.NET 2003 on a Win XP SP2 machine. IIS 5.1 is installed on this same machine.

When I try to create a new web application (or open an existing web project), I get
The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/WebApplication2'. 'HTTP/1.1 500 Server Error'.
.

I tried uninstalling/reinstalling IIS and VS.NET, repairing VS.NET, playing with file permissions for ASPNET user account. Nothing seems to help.

Please tell me someone has a solution for this problem before this PC flies out the window. :( :)

Thanks.
 

KB

Diamond Member
Nov 8, 1999
5,405
386
126
I have had this problem before. It was a while back and I think the problem was caused because I had to register asp.net with IIS. To do that go to the .net framework directory C:\windows\MIcrosoft.net\Framework\v1.1.XXXX\ and run aspnet_regiis -i

Also is your firewall turned off?
 

cyberia

Platinum Member
Oct 22, 1999
2,535
0
0
I tried aspnet_regiis -i, and that did not help.

I had thought about the firewall and tried to disable Port 80 protection. That did not help either. I remember getting a different error message on another PC when the firewall was an issue.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: cyberia
I tried aspnet_regiis -i, and that did not help.

I had thought about the firewall and tried to disable Port 80 protection. That did not help either. I remember getting a different error message on another PC when the firewall was an issue.

Did you run it from the Visual Studio 2003 command prompt?
 

cyberia

Platinum Member
Oct 22, 1999
2,535
0
0
Originally posted by: MrChad
Originally posted by: cyberia
I tried aspnet_regiis -i, and that did not help.

I had thought about the firewall and tried to disable Port 80 protection. That did not help either. I remember getting a different error message on another PC when the firewall was an issue.

Did you run it from the Visual Studio 2003 command prompt?

Yes, and just did it again just in case. Still no worky.
 

cyberia

Platinum Member
Oct 22, 1999
2,535
0
0
Originally posted by: xtknight
Do you have IIS running? ASP enabled in IIS control panel?

Yes, IIS is running. Where do I enable ASP in IIS? Is that Properties -> Home Directory tab -> Configuration... -> Debugging tab -> Enable ASP server-side script debugging?

If yes, I tried that too. It shouldn't prevent me from creating an application though.
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Any messages in your event viewer? What about your IIS logs (C:\WINDOWS\system32\Logfiles)?
 

cyberia

Platinum Member
Oct 22, 1999
2,535
0
0
Thank you everyone for all the help so far.

This is what I get in the System Event Log when I try to create a new web application project in VS.NET:

The server failed to load application '/LM/W3SVC'. The error was 'The specified metadata was not found.
'.
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

and this when I go to http://localhost:
The server failed to load application '/LM/W3SVC/1/ROOT'. The error was 'Class not registered
'.
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

And this is the IIS log file:

#Software: Microsoft Internet Information Services 5.1
#Version: 1.0
#Date: 2005-11-09 20:59:12
#Fields: time c-ip cs-method cs-uri-stem sc-status
20:59:12 127.0.0.1 GET /WebApplication2/get_aspx_ver.aspx 500
20:59:12 127.0.0.1 GET /get_aspx_ver.aspx 500
21:04:24 127.0.0.1 GET /WebApplication2/get_aspx_ver.aspx 500
21:04:24 127.0.0.1 GET /get_aspx_ver.aspx 500
21:51:59 127.0.0.1 GET /iisstart.asp 500
22:01:51 127.0.0.1 GET /iisstart.asp 500