Visual Studio Tricks


Visual Studio (2005,2008,2010) Tips and Tricks.


#504 Debug ASP.net in any browser with #VisualStudio

When browsing the “Visual Studio” search on twitter, I saw a post from @GamersOnlyOlder asking about debugging asp.net in a browser other than Internet Explorer.

Are you forced to use Internet Explorer when debugging ASP.net applications? Absolutely not. This quick tip/trick shows how to browse and setup a default browser to use when debugging ASP.net pages. If you change the default browser, then your standard F5 will launch that browser, and attach to the process for you. In this example, I switch between IE and Chrome for debugging sessions.

Click Screenshot To Play Video

#504 Debug ASP.net in any browser with #VisualStudio

Runtime: 1Minute 20Seconds - Resolution: 900 by 580 - File Size: 2.4Meg

Direct Download: If the video does not work for you,
Click Here to download it.

Visual Studio Tip / Trick #504 English Transcription:

Hey guys just had a quick question on twitter about debugging ASP.NET with Visual Studio in a browser other than internet explorer. So if you right click an HTML or ASPX page you can do a View in Browser. That’s gonna use your default browser if you then go down one more to browse with you get a menu of all the browsers you have installed on your system. So right now its internet explorer, if I just press [F5] to debug you will see that I get a quick IE instants that pops up that brings me into my debugging session. [SHIFT]+[F5] to stop debugging if I come back right click on my page select browse with, I can select another browser like Chrome and here is the trick. Set as default then your [F5] run in browse with will use that, so I will just go ahead and click cancel there come back here. Now [F5] run will launch the browser the Google Chrome browser then I can debug and then [F5] run will actually load the page. So there is quick trick for you around ASP.NET debugging Visual Studio using the browser other than internet explorer.
Kick this Trick on DotNetKicks.com

6 comment(s) so far

  1.  avatar

    Playing/Downloading requires a username/password.

  2.  avatar

    504 Debug ASP.net in any browser with #VisualStudio is a very useful post. Here is another option Perhaps some people did it happened and solution, but there are people that sometimes it happens and do not know how to solve, the problem arises when one is trying to debug an application in ASP: NET with VS2003 and shows us the following message error:

    Error trying to run project: Unable to start debugging on the web server. No permission to debug the application. The URL of the project is in the Internet zone.

    It is a fairly typical error in application debugging, this is because they are poorly configured Internet settings, plus the configuration of our server.

    To fix this we must do 2 things:

    1 .- Open Internet Explorer. On the Tools menu, click Internet Options, Security tab, click Custom Level. Down at the bottom of the Settings list. Under User Authentication tab, look for login and then select Automatic logon with current username and password.

    So much already solved the problem with Internet Explorer, now set our IIS.

    2 .- Open ISS, on the Web server right click, select properties, directory security tab click edit in the window which appears to mark the Use Integrated Security.

    Well that's all we need for our application can be cleaned properly.

  3.  avatar

    Muchas gracias, era lo que buscaba...

  4.  avatar

    Thanks for the suggestions.

  5.  avatar

    Your option seems to work very well. Thanks Much

Post your comment

Thanks for your comments


Be nice ;)

  • Comment

RSS Feeds

All Technology Posts

Scott Cate Main Blog Feed


Visual Studio Tricks Only Feed

@ScottCate on Twitter

Facebook Profile

Twitter @ScottCate

  • Almost sold out: Entity Framework 4 training, PHX 9/15 (Must Register) http://bit.ly/9LqYo7
  • @AZGroups is looking for more "likes" on our new #FaceBook Group. Please "Like" the bottom of http://AZGroups.org #thx
  • New FaceBook Fan Page: Please LIKE if you dig on AZGroups http://sc8.me/chzzxt
  • @tdhurst They call that "room for expansion"
  • $800 in AmEx Gift Cards are in hand! #WP7 WinPhone7 Unleashed Event ( Sat Sept 11 @GangPlank Chandler, AZ) http://sc8.me/a5rJ7X

GetClicky Web Stats

Web Analytics