|
-
Jan 5th, 2009, 11:38 AM
#1
Thread Starter
Member
Unable to debug web apps :(
I have Installed a lovely new version of VS2008 Pro onto a new PC (vista) and all seemed to be going well until i noticed that i cant debug web applications.
All works fine for Windows based apps, but as soon as i open up a web app and try to run it, i get a server error telling me the page cant be displayed. Along with this, if i try to add a break point to the code to see where it is falling over, i get a message telling me that the breakpoint wont be hit and no symbols have been loaded.
To add insult to injury, if i configure my version of IIS to run the site, it all works like a charm. It just seems to be when trying to run it throught the IDE that i get problems.
Please can someone shed some light on this?
I've spent the last few hours going back and forth through Google and come up with nothing that has helped. Any ideas would be gratefully received as i'm clutching at straws now.
Thanks
Gimbal
-
Jan 5th, 2009, 12:21 PM
#2
Sleep mode
Re: Unable to debug web apps :(
I didn't start using VS2008 yet but i've read it has a lot of bugs so MS highly recommends installing service pack 1 for VS.NET2008 . It's about 831 mb.See if this link worsk for you: http://download.microsoft.com/downlo...NUX1512962.iso
-
Jan 5th, 2009, 12:43 PM
#3
Re: Unable to debug web apps :(
I only use Visual Studio 2008 and haven't had this issue yet. I would use Pirate's idea and update it. If that doesn't fix it try an uninstall and reinstall.
-
Jan 6th, 2009, 03:30 AM
#4
Thread Starter
Member
Re: Unable to debug web apps :(
Thanks for the suggestions, I'll give the update a try and let you know how i get on.
Cheers
Gimbal
-
Jan 6th, 2009, 09:20 AM
#5
Thread Starter
Member
Re: Unable to debug web apps :(
This made no difference whatsoever.
I really dont see whats wrong as it was a new pc with a new installation on it.
I just want to be able to run web applications through the IDE.
Surely thats not too much to ask?
If anyone has any other suggestions, please, please let me know.
Thanks
Gimbal
-
Jan 6th, 2009, 09:21 AM
#6
Re: Unable to debug web apps :(
You tried both the latest updates as well as the uninstall and reininstall?
What exactly is the error message that it displays? You say that it says the page cannot be displayed but what else does it say?
-
Jan 6th, 2009, 09:25 AM
#7
Sleep mode
Re: Unable to debug web apps :(
Sometimes ,the built-in firewall causes similar problems, stop it and try debugging .
-
Jan 6th, 2009, 09:29 AM
#8
Thread Starter
Member
Re: Unable to debug web apps :(
Well, to keep things as simple as possible, i created a new web site.
It contains a single page with nothing on it and a single line of code in the code behind page. (this is just a Dim poo as string = "poo")
When i click the run button, the browser window opens showing the following address in the address bar:
http://localhost:49423/WebSite/Default.aspx
and the page, rather than the blank page i should see, is just the standard 'Page cannot be Displayed' page.
Furthermore, the breakpoint that i placed on my solitary line of code, while still marked, is now a hollow red circle and it has a little yellow warning triangle on it.
When i hover over it, i get the message that the breakpoint wont be hit cause the symbols havent been loaded.
It does this for any site i try to debug. Just thought that by keeping things to a minimum, i would be able to see the problem easier. obviously i was wrong. lol
does this give you any ideas on what it could be?
-
Jan 6th, 2009, 09:50 AM
#9
Re: Unable to debug web apps :(
Is it a 404 or a 500 error? Sounds like it could be a 500 errors. You should turn off friendly http errors in IE so you can get the real errors. Go into tools -> Advanced and uncheck show friendly http errors.
-
Jan 6th, 2009, 10:38 AM
#10
Re: Unable to debug web apps :(
Are you an admin on your machine?
-
Jan 6th, 2009, 10:53 AM
#11
Re: Unable to debug web apps :(
 Originally Posted by mendhak
Are you an admin on your machine?
You don't need to be unless you are debugging through IIS. I do not run Visual Studio 2008 as an administrator on my Vista machine and the local works fine but I have to elevate to use IIS for debugging.
-
Jan 8th, 2009, 03:42 AM
#12
Thread Starter
Member
Re: Unable to debug web apps :(
Well, after 3 days of scrabbling around looking for answers......i've finally got it fixed.
It turned out to be a file in the c:\windows\System32\Drivers\etc\
In that folder is a file called 'hosts'
The last line of which is:
::1 localhost
all i had to do was to comment this line out by putting a # at the start and ta-daaaaa!!!! everything worked.
Hopefully this will help anyone else who has the same problem.
Thanks again for the help.
Gimbal
-
Jan 8th, 2009, 09:29 AM
#13
Re: Unable to debug web apps :(
That's interesting. That's a default setting in the hosts file. Mine still has that and debugs fine. Very odd. Did the ASP.Net development server spawn on port 1?
-
Jan 8th, 2009, 10:54 AM
#14
Thread Starter
Member
Re: Unable to debug web apps :(
no, it was on port 4995 or something around there.
really weird.
but it seems to be working now.
I installed the software on another pc (just to test if it worked or not...it has since been removed) and i had the same problem on that one too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|