Tuesday, October 9, 2012

How to view your MVC Application in different browsers

If you've been developing applications in ASP.Net, you'll be used to setting the Default.aspx browser to any browser you want by clicking "View in browser". However in MVC 3, it is not the case, or should I say that it is not easy.

I had an experience wherein I want my MVC 3 application to be executed using Firefox. However, it is always executed in Google Chrome. I've already changed my default browser to Firefox, but it is still executed in Chrome. I've already tried looking for the "View in Browser" option when I right-click on the .chtml files but it does not show.

It is when I found this link (WoVS Default Browser Switcher) which allows the user to switch browsers when the MVC 3 application gets executed. It is compatible with VS 2010 and it is free (I heard this saying before from my friend that, "If it's free, it's for me").

I find this tool great because it makes things easy whenever I want to switch browsers for testing. Then again, I still need to see the entire feature of this and if it is really good.

I hope this helps you guys!

Happy coding!

PS: You can post your experiences here in my page for this tool in the comments section.




UPDATE 11/16/2012

Lately, I got this error message

Thankfully, I got my solution from Steve Sloka's blog and he gave this great solution.
Goto: %localappdata%\Microsoft\VisualStudio\10.0\Extensions and delete the folder named: "Clarius Consulting", then re-download the extension and all should be well.
I hope this works too as it did to me.

Happy coding! 

No comments:

Post a Comment