Changing the default browser in Visual Studio 2010


I found a quite funny behavior in Visual Studio 2010 when working with Silverlight applications. The problem is that if your running Silverlight applications in Firefox it doesn’t clear the cache when loading your test page. End result is that your running an old version of the Silverlight code every time you debug.

A possible workaround is to change the browser used while debugging to Internet Explorer.

This is how you do it:

  1. Start a new Web site project (It can’t be done in a Silverlight project)
  2. Right click a webpage
  3. Select “Browse With”
  4. In the displayed dialog, select Internet Explorer
  5. Press the set default button
  6. Now close the dialog
  7. Open the Silverlight project

 

    Now all debugging will open in Internet Explorer instead. Internet Explorer clears the cache when doing debugging, so you shouldn’t experience the problem.
Bookmark and Share

,

  1. #1 by Virtual World on July 5, 2010 - 19:00

    Great !
    i had the same problem with firefox
    Thanks

  2. #2 by John Awesome on February 6, 2011 - 17:07

    Funny but I came to this page because I have the exact same problem…but using Internet Explorer with Visual Studio 2010. Seems like a bug in VS not the browser.

  3. #3 by Morten on February 6, 2011 - 20:47

    yeah, it’s visual studio related.

  4. #4 by Mark on May 11, 2011 - 09:25

    why is that the layout i’ve made in vs2010 when viewed in different browser had different positions others are dislocated and rambled? pls. help. . .

  5. #5 by Morten on May 11, 2011 - 13:34

    If different browsers are showing your html differently, then the fault is probably in your html.

  6. #6 by Mark on May 12, 2011 - 01:36

    thanks for your response, probably, i know that drag and drop is not recommended in vs10, and i’m not using it, but do you have an easy way to design the interface of a webpage? cause i really can’t detect the problem in my html or a software that correlates with vs10 when it comes to developing a page?. . . thanks a lot!

  7. #7 by Morten on May 12, 2011 - 08:41

    Without knowing what you’ve done I cannot possible say what’s wrong. So I recommend you post your code and ask the question on StackOverflow.com. That site is speciallized in software questions, that will greatly improve your chances for getting a faster answer.

  8. #8 by Ollerbytes on October 10, 2011 - 14:41

    back to the “funny” behavior…

    I had this problem with a Web Application using IE8…

    to solve it… I’ve just deleted all temporary files…

    and magically, it works on the latest version…

(will not be published)