Cannot debug asp.net website in visual studio

I am not able to debug my website.  When I hit the Start Debugging button in Visual Studio, the project builds and Internet Explorer opens with my site, but Visual Studio does NOT stay in debug mode, it just builds and then starts the website.

I set a breakpoint in my default.aspx page's load event, but it is not hit.  

A while back, I was fiddling with my settings (DUH) and apparently messed something up.  But I have looked over the IIS7 settings and my Visual Studio and project settings and everything makes sense, but I still cannot debug.  What am I doing wrong?

Thanks.
dougschultzAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ajitha75Connect With a Mentor Commented:
Ensure that you have

 <compilation debug="true"/>

in web.config file..

it should be inside <System.Web> element.

0
 
Tom BeckConnect With a Mentor Commented:
Just wondering if you have rebooted since the problem started. I had the same problem a few days ago and a reboot fixed it.
0
 
xav056Connect With a Mentor Commented:
Run visual studio as an administrator
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
dougschultzAuthor Commented:
I DO have  <compilation debug="true"/> set in the web.config file.

I HAVE rebooted several times attempting to fix the issue.

I DO run Visual Studio as an administrator.

Still no joy.
0
 
dougschultzAuthor Commented:
OH, I have made a bit of a breakthrough on this..

I have <location path="." inheritInChildApplications="false" >  wrapping the <system.web> section in my config file.  When I removed this, I was able to debug as expected.

But, why would this be the case?  I do need to have this location tag..

Any ideas?
0
 
dougschultzAuthor Commented:
Hm, it would appear I've stumbled onto a known issue.

http://bit.ly/cfn0cu

Is anyone able to find any better information on this issue?  Frankly, the workaround stinks.  I'm currently downloading the VS2010 RC to see if that gives any love.
0
 
Greg GambleConnect With a Mentor ProgrammerCommented:

You have this:
<location path="." inheritInChildApplications="false" >

Should it not be:
<location path="/" inheritInChildApplications="false" >

Open in new window

0
 
dougschultzAuthor Commented:
Apparently not.  It failed with a configuration error:

Parser Error Message: <location> path attribute must be a relative virtual path.  It cannot start with any of ' ' '.' '/' or '\'.
0
 
Greg GambleConnect With a Mentor ProgrammerCommented:
Do you have two apps in the same directory?
0
 
dougschultzAuthor Commented:
In the production environment I do have nested apps.
0
 
Greg GambleConnect With a Mentor ProgrammerCommented:
But nothing in the development? If so, then why do you need it? Debug works fine without, correct?

Sound like this tag is stopping any writing that the debugger is doing to the web.config.
0
 
dougschultzAuthor Commented:
Yes, this is the recommended workaround.
0
All Courses

From novice to tech pro — start learning today.