Rick Strahl's Weblog  

Wind, waves, code and everything in between...
.NET • C# • Markdown • WPF • All Things Web
Contact   •   Articles   •   Products   •   Support   •   Advertise
Sponsored by:
Markdown Monster - The Markdown Editor for Windows

Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!


:P
On this page:

Here we go again…

 

Once again I was left with a system that doesn’t want to debug ASP.NET applications. This has happened over time a few times in the past on various machines.

 

I get the dreaded:

 

Error while trying to run project: Unable to start debugging on the Web Server. You do not have permissions to debug the server.

 

Make sure you are a member of: Debugger Users

 

Well, my account *IS*a f@&ing member of debugger users as well as Admin account.

 

Now I’ve been through this before, so the first thing I tried is exit my current Windows Login session and log back on under another Administrator account and try to compile and run the project. I've found that in most situations that works and it did this time as well.

 

This means that VS is working right but there's some configuration setting in the environment that's screwed. So what is it REALLY that VS.NET needs to debug this application?

 

After some more farting around (and another wasted hour) it turns out the real culprit is some Internet Explorer security setting. Remembering that I had moved localhost in and out of the local intranet zone for testing some authentication with apps locally a couple of days back on a hunch hunch I thought I make sure to check settings there.

 

Everything looked ok. Specifically you want to make sure that the  Include All Local (Intranet) sites checkbox is checked, but this was not my particular problem. Been there done that… without that setting VS.NET also will not debug.

 

But I figured it can’t hurt to rest the Intranet Zone’s security settings. And sure enough that did the trick. Now don’t ask me what setting actually caused the problem – I couldn’t tell you but for the local zone it’s reasonable to set security to Low or Medium and then reset any settings you really need more specifically.

 

 <RANT>

 I’ve ranted about the fact that VS.NET is so damn tightly integrated with the OS it’s a nightmare when something doesn’t work. This is another one of those instances where VS is using a seemingly unrelated system component and leaves no idea where the problem really could be to even start looking for solutions. While there's plenty fof information on this particular error message I haven't seen this mentioned as a problem before.

 

Total integration has its drawbacks. We can look even more of these nightmares with Team System where it’s not just a single machine that gets taken over but multiples over a network.

</RANT>

 


The Voices of Reason


 

Scott
January 02, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Can't agree more with your rant!

bgx
February 01, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks, that helped. Although it was actually adding localhost to the Trusted Sites that did the trick.

Oli
February 16, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks, i've had the same problem and the same solution. (put localhost in trusted sites:)

Gavin O'Kane
February 17, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Hi,

I had the same problem, but a different solution helped me...here's where I found it:

http://weblogs.asp.net/pgielens/archive/2004/08/20/217884.aspx

Thanks

Visc
February 24, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks guys,It worked for me .

I had to Include All Local (Intranet) sites checkbox checked on the Internet Explorer settings .That did the trick.


pradeep panzade
March 08, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

I am having same problem i am unable to debug asp.net application.
I am the user of vs developers and debuggers group. I have ticked all the options on the sites in local intranet in internet explorer.
But then also it is not working.

Please help me out...


pradeepvpanzade@yahoo.com

vijay
March 21, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

another solution:

From Internet Options (in IE go to Tools -> Internet Options), the Security tab, at the bottom of the Custom Settings for Internet Zone, set "Automatic logon with current username and password".

Shawn
July 12, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

I also had the infamous "Unable to Debug" issue....I tried every solution possible from the forums I came across. It turns out, the issue was tied to the "HTTP Keep -Alives" setting. Im using windows XP Pro SP 2 and had earlier unchecked this box because of the connection limit.

In short.....If you are having the Unable to Debug Problem, make sure that HTTP Keep -Alives Enabled is checked! If it is, then try the other proposed solutions

Tony
August 10, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

none of the above worked for me, but mine happened after I installed Windows 2003 SP1 - try http://support.microsoft.com/default.aspx?scid=kb;en-us;896861

I disabled loopback check and it worked for me (it did work before I applied W2003 SP1 though)

Rich
September 13, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Windows 2003 sp1 certainly does cause the 'debugger user' error as described by Tony above. The fix in the KB article worked for me.

Rohit
November 25, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

if i m encountering this program and still went on to make the web application by selecting future attempts of debug to false then it will effect my application ?

Rohit
November 25, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

if i m encountering this problem and still went on to make the web application by selecting future attempts of debug to false then it will effect my application ? Plez reply as soon as possible

Yanni
December 06, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

You are soooo right.
Thanks!

esb
December 19, 2005

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

This is a slightly different solution - remove localhost from trusted sites and enter localhost into intranetSites under IE (Tools/Security/Local Intranet/Sites/Advanced)

chaitali ghosh
March 08, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Error persists while trying to run project:unable to start debugging on the web server.access is denied

Kevin
June 02, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks Shawn! I thought I had tried everything. I also could not debug because of the "HTTP Keep -Alives" setting being unchecked.

AKP
June 16, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

In my case, it was not debugging because -
In Internet Explorer -> Tools -> Internet Options -> Advanced :
(a)Script Debugging (Internet Explorer) was DISABLED
(b) Script Debugging (Others) was DISABLED.

As soon as I enabled these two, it started debugging.

- AKP

Paul
June 21, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Hello, where do I find this HTTP Keep-Alives?

Jason DeGeorge
August 20, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks for this particular blog. I sporadically work on an old .net application and without postings like this i would tear my hair out. I just ran into this and it has been so long since i have seen it i would not have put the fact that i changed IE settings together with a CS debugger issue.


Vaibhav
September 15, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Sir it realy worked well... THANKS A TON

Abraham Mathew
September 25, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks for this post,its really crazy,you fiddle with the internet explorer 7 rc1 intranet settings and u spend 2 days trying to find the solution.Thanks for the post and google.

Well vs 2005 doesnt have this problem since it has its own server....man I was gonna format or reinstall ....$%$%^$%^

Asp.net e ASP.net 2
September 29, 2006

# DotNetSide - Abilitare il debugger

.NetSide, il primo user group del sud Italia dedicato al Microsoft .net Framework ed a WinFx

Matt
November 10, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks for that, I've been scratching my head for a couple of hours. My web app worked fine till I upgraded to IE7, suddenly I couldn't run it anymore! So much for progress.

Prashant Danda
November 28, 2006

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Hey it is very true, i too faced the same problem till i upgraded to IE 7.0

For me it was so different, none of the solutions suggested worked except for this,
I added localhost to Intranet zone and then i was able to debug.

While lot of KB's as well as other posts suggested adding localhost to trusted sites it still did not help, adding to intranet helped.

Thanks
Prashant

sally
February 19, 2007

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Thanks for this info, that's really helped (I'm also running IE7). However, as well as resetting the intranet zone settings I also had to click 'Sites' on the Security tab to launch the 'Local intranet' dialog, and then uncheck 'Automatically detect intranet network' (whilst keeping the sub-items checked). Not sure if this is common to other IE7 installations or due to some local setting...

Mark
November 30, 2007

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

Your the man, I've looked at loads of sites telling me to mess with user accounts and ie settings bt yours did the trick.

Cheers

Tonante
January 15, 2008

# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!

I discovered that my problem was that I had added http://localhost to my Trusted Sites and VS did not like this. As soon as I removed that everything was fine. This was fater I searched
the entire lisrt of KBs on Microsoft's support site. They had good solutions but missed this subtle one.

West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2024