user153920
user153920

Reputation:

Visual Studio not debugging

I have a problem that has lately being bugging me on 2 different computers

What is happening is that I press F5, to compile my website, the website loads, but I cannot debug! Its like I am not running the website from visual studio at all. And then sometimes I restart my PC, and it comes back to normal. I have no idea what is the problem, and I have looked up this issue for quite a while now, but to no avail...

Can somebody shed some light on this? I have no clue what is happening here

Thanks

Upvotes: 0

Views: 939

Answers (3)

user123212
user123212

Reputation: 145

It might have to do with how you are opening your project in VS. Make sure you selecting the correct project/solution file.

I was having a similar issue when opening a MVC project with Open->Website rather than with the .sln file (solution) saved in the root of the site.

Upvotes: 0

David McEwing
David McEwing

Reputation: 3340

If you are using IE8 or running on Vista then you need to run Visual Studio 2005 with elevated privileges to get debugging to work nicely.

I found with IE8 due to the threading that I either had to close all the IE windows or run as admin. There was another hack which I can't remember and I think was fixed in VS2008 SP1 because I don't have that problem anymore.

Upvotes: 0

Richard Lennox
Richard Lennox

Reputation: 143

You could always try: Debug --> Attach to Process.

It tends to be either the aspnet_wp.exe (IIS 6.0, XP) or one of the W3WP.exe processes (IIS 6.0, Server 2003).

Upvotes: 1

Related Questions