Partager via


Run VS2005 as Administrator on Vista when debugging

I recently was doing some ASP.NET 2.0 work (sometimes it's good to mix up what you work on, ya know) and I had a problem where I could not debug my ASP.NET application on Vista.  It was weird because the debugger would start, but then would exit immediately.  The webpage would come up just fine, javascript and server side components worked perfect, but it would just not be in debug mode. 

I couldn't find anyone having a similar problem (or I'm just not good at finding it), but I eventually did find that some people were having other problems with debugging ASP.NET on Vista.  I decided to try a solution that others were using, which actually was something I had used to solve a few other problems I'd had on Vista, which was to right-click VS2005 and run it as Administrator.  Unsurprisingly, this fixed the problem. 

 I write this blog to simply help someone who is having similar problems.

Keywords: f5 debug debugging vista vs2005 vs 2005 visual studio asp asp.net asp.net 2.0 exit

Comments

  • Anonymous
    January 25, 2007
    come here everyday to see if there is something new about phoenix, hehe :)

  • Anonymous
    February 05, 2007
    I get the hint, I can pick up the pace.

  • Anonymous
    April 22, 2007
    Hi,  i was also facing the same problem of not able to debug VS2005 in vista, any way your blog has helped me out. keep posting.......

  • Anonymous
    July 06, 2007
    Thx - i´got the same problem, perhaps it was the Wauv effect :-)

  • Anonymous
    August 15, 2007
    This was very helpful. Thank you!

  • Anonymous
    November 27, 2007
    Hi,    Thank you very much. It is really helpful.

  • Anonymous
    March 27, 2008
    What I did is right click on VS2005, then Properties and go to Compatibility tab and check Run as Administrator :)

  • Anonymous
    May 12, 2008
    Thanks for the help, solved my problem. However I have to open devenv.exe first then load my solution file. It seems I can't right-click my .sln file and run that as Admin :( But beggars can't be choosers