Click to See Complete Forum and Search --> : Can't create a new solution


RickCrone
August 18th, 2005, 09:37 AM
I'm getting a HTTP /1.1 500 Server Error when I try to create a new ASP.NET web application.

I'm using VS 2003.

I have a local IIS running.

I think I must have some configuration incorrect, but I don't know what to change. Any suggestions?

The system log show:

The server failed to load application '/LM/W3SVC'. The error was 'The specified metadata was not found'

I tried to create a simple hello.asp and put it in wwwroot. When I tried to

browse to it the system log showed:

The server failed to load application '/LM/W3SVC/1/root'. The errorwas 'Class not registered'.

Before doing all this I have run Aspnet_Regiis.exe /i and I think it was successful.

mmetzger
August 18th, 2005, 11:23 AM
It sounds like an error in your web.config file.

RickCrone
August 18th, 2005, 12:09 PM
Which one? I mean where is the one that I should check located?

I have 186 web.config files on my machine.

mmetzger
August 18th, 2005, 03:00 PM
The web.config for the solution you have. If you already have a working one, try renaming the current one (in the directory with the solution causing you problems) and copying one from a known working site.

RickCrone
August 18th, 2005, 04:33 PM
Thanks... I don't have a working application. This is the first one I'm trying to create.

I did find a problem with DTC and managed a reinstall of that... but that has not help with the problem.

I'm guessing that the application would go to C:\inetpub\wwwroot. There is no web.config there.

That's where I put my hello.asp. It still l gives the same error in the system event log.

I only have about another hour today and won't be back at this till Tuesday.

Thanks for help. I know this can be done!

mmetzger
August 19th, 2005, 10:50 AM
Erm, ok... not sure why you have 186 web.config files then. Try creating a new application in IIS, then copy one of said web.config files in place. Also, what else does this machine do? How many sites are defined in IIS?

Water Cooler v2
August 19th, 2005, 06:01 PM
I am having the exact same problem. If you do find the solution to your problem, please, please let me know too. It's almost been six months I've had the same problem on my home computer with Windows XP Professional with SP2, VS.NET 2003, .NET v1.1.4322 with SP1 and IIS v5.5.

http://www.codeguru.com/forum/showthread.php?p=1216132#post1216132

RickCrone
August 23rd, 2005, 09:06 AM
Erm, ok... not sure why you have 186 web.config files then. Try creating a new application in IIS, then copy one of said web.config files in place. Also, what else does this machine do? How many sites are defined in IIS?

I can not do the first step you suggest... create a new solution. That is my issue. I'm guessing the web.config files are from examples. I had loaded MDE 2002 with Dot Net 1.0 and have NOT unloaded it as I was moving only a few applications at time to the newer MDE 2003 Dot Net 1.1. I noticed that 'about' for 2002 list VS.NET but the 'about' for 2003 does not.

I just tried using the older version to create the ASP.NET application and it worked! I'm still getting the error on MDE 2003. I remain confused... does any of this give you any idea what might be wrong?

Maybe I can get some clue from the application that was created.

I'll let you know what I find out.

mmetzger
August 23rd, 2005, 11:36 AM
What I meant by creating an application is to actually use the IIS manager to do so (right click, new web site, etc.) In the properties you can then select to create a new application and copy a web.config in place.

However, because VS.NET 2002 seems to work, it sounds like your registration may be screwed up. Make sure you ran the aspnet_regiis from the proper 1.1 directory, not the 1.0 rev.

RickCrone
August 23rd, 2005, 11:45 AM
I found a solution!

For the class not registered error, try
http://msmvps.com/bernard/archive/2005/03/22/39216.aspx

That got it! At least the second part did. I think I had the Component Service working... and I couldn't figure out what to delete so I just followed the instructions b and c to create the IIS package and reset.

Thanks!

Oh I found this on Asp.Net here's the link for the thread:
http://forums.asp.net/1029383/ShowPost.aspx