Thursday, January 27, 2011

Asp.Net Configuration - Open Broswer When Debug

Configuring Asp.Net To Open New Browser Window When Start Debugging.

Not too long ago I encountered a small problem that occurred to one of the developers in my team when he got a new computer.
Previous to the new PC, whenever he clicked on "Start Debugging" (also known as F5) the solution compiled and opened a new browser window with the default page.


After the new PC arrived the configurations in his Visual Studio 2010 were different. Meaning - Whenever he clicked F5, the project was compiling, but no browser windows appeared.


With a short phone call I explained the steps he needs to do, but in order for it to be clear for all of us, I decided to upload it as a brief post.

  1. Right click on the project's name.
  2. Click on "Properties".
  3. A configuration manager window will open.
  4. Click on the third tab called "Web".
  5. On that tab you will have several sections, the first the is what we're interested in.
  6. on "Start Action" section (the first one) you will see many options:
    1. Current Page - Will open the page you're at.
    2. Specific Page - Will open a specific page.
    3. Start external program - Will run a specific ".exe" file.
    4. Start URL - Will allow you to choose URL to open.
    5. Don't open a page. Wait for a request from an external application - Kinda explain itself.

Good luck, and thank to Noam from our Bulgaria office,
Elad Shalom,
CTO at ITweetLive.com

10 comments:

  1. Thanks! Saves me from closing the window down each time i debug!

    ReplyDelete