Changing default browser used in debugging ASP.NET MVC 2 is a bit tricky in Visual Studio 2010. To use ScottGu’s steps, you will need to add new ASPX page first. But unfortunately if you delete the page then close the application, anytime you rerun the application then the change you did will lost (it backs to use the default browser set in OS).
In my case I have Firefox set as my default browser but I need to use Internet Explorer as default browser for debugging. The trick I do is by doing these:
- Open the project properties
- Go to Web tab
- Set the Start Action to use Start external program and then pass the Internet Explorer executable path and the url as Command line arguments.
- Set the Servers’ specific port to the same port set in the url in step 3.
(click to view the image in original size)
Make donation to this article:
Leave a Reply