The first success that I’m able to report for my Silverlight 2 Beta 2 to RC0 porting is my Photobucket Silverlight library that I’ve been working on. What the Silverlight team didn’t mention in their postings on Silverlight.Net is how many bugs they fixed. I don’t know the number but evidently they fixed a crucial one in how the ClientAccessPolicy.xml file was applied. In the Beta 2 when you had a ClientAccessPolicy file like this, URLs with spaces or special characters like + or % this failed:
Now that’s been fixed! and my test cases work. Because I used the Silverlight unit test framework and I already had built a test suite for the library, porting to RC0 for this demo was just a recompile – sweet! Compare this output with the Beta 2 test run (you need to have Beta 2 installed to see these results).
One other thing that I had to do with my code is change the <object> tag on my page to use the new RC0 MIME type and download URL:
<object data="data:application/x-silverlight," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/Test.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="background" value="white" />
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
Now I need to test it out on FireFox 3 and Safari and FireFox on my MacBook and I’m done with this one!