tags:

views:

107

answers:

2

Hello, I downloaded the free Visual Web Developer 2008 Express for my Windows XP machine and when I make a new Web Site, with no code of my own yet added, it fails to run, first saying that it isn't configured for ASP.Net 2.0 and that I must do it myself, and then, when trying to run it anyway I get the error "Unable to start debugging on the webserver. The underlying connection was closed. The connection was closed unexpectedly." What kind of configuration am I missing (and how do I do it??) Thanks, bsperlin

+1  A: 

Did you install IIS after installing .net?

Try running the asp.net regiis tool. In a Visual Studio command prompt:

aspnet_regiis -u
aspnet_regiis -i
Winston Smith
I couldn't find the command prompt in Web Developer (though I've seen it in other VS products) and the program "aspnet_regiis" is not recognized in a normal command prompt. I did put IIS on the system after the web developer so I went to the "add/remove programs" and removed web developer, then reloaded it from the net.I can believe that this sequence contributed to my problems. Was there something I didn't do?
`aspnet_regiis` is a program in your .net framework folder, typically `c:\<WinInstallDir>\Framework\v2.0.50727` - you can run it from there via a normal command prompt. When the framework installs, it registers with IIS, if it exists. Since you installed IIS after the framework, this step didn't happen.
Winston Smith
Well, the uninstall and reinstall worked as you and Tom said, but the same error comes up. In addition to the above error, if I run the program without debugging then I get the following error on a webpage:XML Parsing Error: no element foundLocation: http://localhost/BTS3/Default.aspxLine Number 1, Column 1:Since IIS is now installed, do I have to remove and then reinstall the Web Developer? I'm on dialup and that takes many hours to reload (the setup is already on my desktop but it calls for a lot of files from the net).
Winston Smith
A: 

The first thing - are you running XP Home edition? Since you did not specify either Home or Professional, if you are, they do not have IIS installed nor does it come with XP Home, you could try Cassini web server which can be found here.

Hope this helps, Best regards, Tom.

tommieb75
I'm using XP Professional 2002 SP 3. I got it from a local shop about 1 1/2 years ago but didn't get the disk with it. I went back this month and they gave me a disk, I installed IIS with it, then removed the Web Developer, redownloaded it and installed it.
Sounds like something is amiss...you can confirm yourself by going to http://localhost on your browser to see if the IIS is indeed installed. If it is, it could be that you need to register the ASP.NET service...click on Start, Click on Run, enter 'cmd' without quotes, and enter the command that Winston suggested.
tommieb75