Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
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.
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>
Other Posts you might also like
- Adding minimal OWIN Identity Authentication to an Existing ASP.NET MVC Application
- Resolving Paths To Server Relative Paths in .NET Code
- Map Physical Paths with an HttpContext.MapPath() Extension Method in ASP.NET
- Back to Basics: Rewriting a URL in ASP.NET Core
- Getting the Client IP Address in ASP.NET Core
The Voices of Reason
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
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
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
I had to Include All Local (Intranet) sites checkbox checked on the Internet Explorer settings .That did the trick.
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
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
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
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".
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
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
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
I disabled loopback check and it worked for me (it did work before I applied W2003 SP1 though)
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
Thanks!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
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
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
Well vs 2005 doesnt have this problem since it has its own server....man I was gonna format or reinstall ....$%$%^$%^
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
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
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
Cheers
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!
the entire lisrt of KBs on Microsoft's support site. They had good solutions but missed this subtle one.
# re: Unable to debug ASP.NET application - make sure you check Internet Explorer Settings!