First Silverlight 2 Beta 2 to RC0 Porting Success

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:

[https://api.photobucket.com/search/Newport+Beach/image?num=100&oauth_consumer_key=149826252&oauth_nonce=9913158&oauth_signature=DvcYKD35td4TNZJgHMeKApQtut0=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1222459865&oauth_version=1.0&offset=0&page=1&perpage=10&recentfirst=1&secondaryperpage=5](https://api.photobucket.com/search/Newport+Beach/image?num=100&oauth_consumer_key=149826252&oauth_nonce=9913158&oauth_signature=DvcYKD35td4TNZJgHMeKApQtut0=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1222459865&oauth_version=1.0&offset=0&page=1&perpage=10&recentfirst=1&secondaryperpage=5 "https://api.photobucket.com/search/Newport+Beach/image?num=100&oauth_consumer_key=149826252&oauth_nonce=9913158&oauth_signature=DvcYKD35td4TNZJgHMeKApQtut0=&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1222459865&oauth_version=1.0&offset=0&page=1&perpage=10&recentfirst=1&secondaryperpage=5

")

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).
image

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" />
    <pahref="https://go.microsoft.comwhite" />
    <a href="https://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
        <img src="https://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
    </a>    
</object>

Now I need to test it out on FireFox 3 and Safari and FireFox on my MacBook and I’m done with this one!