views:

6557

answers:

7

When you hit F5, the browser windows pops up, how do you set which browser the debugger users in Visual Studio 2008?

NB. I have looked for the 'Browse with' option and not found it. http://stackoverflow.com/questions/79954/visual-studio-opens-default-browser-instead-of-ie

NB2. If you are already debugging you dont have the 'Browse with' option. - Stop debugging and then its there!

+16  A: 
bdukes
A: 

If you use MVC, you don't have this menu (no "Browse With..." menu)

Create first a normal ASP.NET web site.

EricSch
No need, just right-click on the Default.ASPX file and that one file will have the option.
PRINCESS FLUFF
+3  A: 

To permanently make Visual Studio open a project in IE without changing the default browser you can do the following:

Project Properties -> Web -> Start Action

Start external program: C:\Program Files\Internet Explorer\iexplore.exe Command line arguments: Enter the url of the path to your start page ie http:\localhost\myproject\default.aspx

This won't allow you to debug client side script in Visual Studio though.

Matthew Lock
+8  A: 

If you use ASP-NET MVC, you need to right-click on Default.ASPX which will have a Browse With menu.

PRINCESS FLUFF
+3  A: 

ASP.NET projects:

  • Right click a webpage (.aspx, or on a folder)
  • Select Browse With...
  • Choose your browser
  • Click Set as Default
  • Click Browse

ASP.NET MVC 1 projects:

Right click Default.aspx, then follow steps above.

ASP.NET MVC 2 projects:

As there is no Default.aspx, you need to create one of the above two project types and follow the steps above.

RaceFace
A: 

If you are using MVC 2 you do not need to create another project, just add component -> webform to the project then: * Right click the webform * Select Browse With... * Choose your browser * Click Set as Default * Delete the webform

PHOTON
A: 

ie ---> Tools ----> Internet options -----> Programe ------> Make Defualt

romdorn