Last post Feb 05, 2010 05:45 PM by bsperlin
Feb 01, 2010 01:36 PM|bsperlin|LINK
I've asked this on stackoverflow.com but didn't get an answer which worked. When I run Web Developer, even with a new Web project with no additional code added, I get the following error:
"Unable to start debugging on the web server. The underlying connection was closed. The connection was closed unexpectedly."
I have installed IIS 5.1, uninstalled it, then reinstalled it, likewise Web Developer (the last after the last IIS install). I have not reinstalled the 2.0 Framework (this takes a 4 hour download on my dialup connection). What procedure haven't I
done or what setting did I possibly set wrong to create this problem?
Feb 04, 2010 03:17 PM|night_dog|LINK
What happens if you start the project Ctrl + F5? If it is a website in IIS you can try to attach the debugger to already running site. Go to Debug -> Attach to process and choose aspnet_wp.exe.
Feb 04, 2010 04:13 PM|bsperlin|LINK
Starting with Ctrl+F5 I get a webpage that says:
XML Parsing Error: no element found
Line Number 1, Column 1:
Also, in the Debug menu of my 2008 Express Edition IDE I don't see "Attach to process". Should I look elsewhere or is it not in this cutdown version?
Thanks for your time!
Feb 05, 2010 01:15 AM|night_dog|LINK
Hmm, appears that you cannot attach with express edition
http://msdn.microsoft.com/en-us/library/c6wf8e4z.aspx. It is not supported.
Which browser you are using? Try to open the page in another browser. Also try adding some basic html content in default.aspx page - is the same error shown?
Feb 05, 2010 12:27 PM|bsperlin|LINK
My main browser is Firefox 3.0 but I just tried IE7 and for http://localhost/ and it couldn't find anything. I did put a label on one of my pages, just to delineate it from a blank page, and I never was able to see that. a) could it be that I haven't started
IIS? How would I start it, or is it started automatically? b) why doesn't the development server come up? It just seems that some settings are wrong somewhere. Where is the best place to look??
Feb 05, 2010 03:26 PM|night_dog|LINK
As I see in you previous post, Visual Studio is trying to open this url
http://localhost/BTS3/default.aspx, Do you have such website configured in iis?
Feb 05, 2010 05:06 PM|bsperlin|LINK
Well, I've made progress following your questioning. In Settings->Control Panel->Admin Tools->Internet Info Services I found that the folder called "Default Web Site", under which I had made virtual web sites for my programs, had the word "Stopped" by it
(which I hadn't noticed before). So I started it and a simple program which accesses the web and returns the source of a web page now works. A program which still doesn't work now has the (different) error: "Unable to start debugging on the webserver. Debugging
failed because integrated Windows authentication is not enabled." I looked at web config, ASP.Net Configuration and the properties of the virtual directory but didn't spot an difference between those that worked and those that produced the above error.
I appreciate the time you've taken to get me to look at some things. Does the solution to this current error jump out at you?
Feb 05, 2010 05:45 PM|bsperlin|LINK
Right now everything is working. On the final project that needed work I found that in Directory Security -> Anonymous Access I hadn't checked the box at the bottom for Windows authentication. Quite a rats-nest of menus and settings! No wonder crackers
find so many holes in security. Is the networking-of-the-future going to be simpler? You're always going to have beginners and over-worked admins making settings errors (I'm the beginner).
In any event, night_dog, I appreciate your patience while I fumbled around and your suggestions really helped!