Tuesday, November 22, 2011

Developing for a specific version of Silverlight

I recently ran into an issue where the version of Silverlight I had installed on my development environment didn’t match my end clients’ version of Silverlight.

I was running Silverlight v4.0.60831.0, they were running Silverlight v4.0.50401.0. (Who would of thought a 0.0.1 difference would of really mattered?)

Anyway I set out to accomplish two tasks

  1. Replicate the issue by uninstalling my version of Silverlight and installing there’s.
  2. Update my development environment so that I could fix the problem.

Here are my notes:

I using Control Panel to Uninstall Silverlight 4 from my test box.

I located an older version of Silverlight by using Microsoft’s “Microsoft® Silverlight™ Release History.” Which I installed on my test box.

I successfully reproduced the error.

I used Control Panel to Uninstall Silverlight 4 SDK from my development box.

I downloaded the SDK for the specific version I needed. Once again, using Microsoft’s “Microsoft® Silverlight™ Release History.” Which I installed on my development box.

I opened Visual Studio 2010, rebuilt the solution, deployed, the error was corrected.

That’s it. I hope it helps someone.