Thursday, January 06, 2011

Asking to Install Silverlight 4 when it’s already installed with Visual Studio 2010

Asking to Install Silverlight 4 when it's already installed with Visual Studio 2010
Check one thing in your system

1) Make sure Microsoft Silverlight is enabled on internet explorer. 
Go to IE à Tools à Internet optionsà on the programs tab click on "manage add ons" button and check for Microsoft Silverlight 4 is Enable.
Still if you are not able to solve this please uninstall all Silverlight components and install in proper way, follow the installation instruction in
2) If you don't have time to do this so, still you can test your application by using Silverlight enable browser.
  • Go to the Project à right click à go to Property page
  • Go to the Silverlight page and click on the "Enable running application out of the Browser
  • Now run your application using Visual Studio 2010
3) Make sure you are running silverlight App on 32 bit Browser, Because  Silverlight App does not works on 64 Bit IE Browsers.
I Solve this issue in following way, It is not the solution but its works for me

When I create application first time and run, it giving me pop up for Silverlight installation..
Now go to project properties --> Silverlight Tab and just Check and Uncheck again (so no change) on the 
"Enable running application out of browser" check box and close this window with Save or without saving now run the application (press F5), it works fine. 

Make sure your startup project set as SilverlightApplication NOT SilverlightApplication.Web

I tested this with
  • SilverLight 4 
  • IE Browser 8/9 32bit (this issue  not comes in other browser like Chrome, Mozilla etc.)
  • Visual Studio 2010
  • Window 7 as OS
Finally Finally I got the solution for this .....................
  1. Make sure you are not running IE 64 bit, because silverlight 4.0 and less  does not support IE 64 bit, Silverlight 5.0 and above support this
  2. Now if you are using IE 32 bit then Add your application URL as a Trusted site, try following option

Go to IE --> Internet Options -->  Security --> Trusted sites --> Sites --> Add

  • Add you site URL
  • Uncheck "Require server verification (https:) for all sites in this zone"

That's it, you are good to go.

No comments: