Silverlight Streaming: Careful with that application's name!

I lost some time today with that error, so be careful what you name your Silverlight Streaming application!

Silverlight Streaming is a service offered by Microsoft, 4 GB of storage for your Silverlight applications, which will usually be used for streamed videos. When you create a Silverlight Streaming application, you may name it anything, and apparently the name is not validated. In my case, I thought I'd be clever, and I named my first application 2007070201MumbaiPuneTraffic, with the string "2007070201" being a unique identifier (7th of July 2007, application number 01).

However, this causes issues: A JavaScript variable is created to store the reference to the DIV hosting the Silverlight plug-in. Expression Media Encoder gives that JavaScript variable the exact same name as the Silverlight Streaming application (actually, they add the suffix "Wrapper"; so in my case, it was "2007070201MumbaiPuneTrafficWrapper"). However, a JavaScript variable's name may not start with a number! So I kept getting script errors, until I figured what was going wrong.

As a quick workaround, renaming that JavaScript variable worked, and I could enjoy my video. In the future, however, I'll make sure to use a different naming convention, in order to avoid this kind of issue.

Print | posted on Tuesday, July 10, 2007 6:26 PM

Feedback

# re: Silverlight Streaming: Careful with that application's name!

left by Marisa at 8/24/2007 3:48 AM Gravatar
Please tell me how to get started. I downloaded silverlight streaming but what in the world do I do to create an application? Help would be appreciated.

# re: Silverlight Streaming: Careful with that application's name!

left by Laurent at 8/24/2007 5:28 AM Gravatar
Hi,

http://silverlight.net/GetStarted/Default.aspx should get you started with samples and tutorials.

WHat type of application are you trying to make? If it's a video, the easiest way is to download the Expression Media Encoder here:
http://www.microsoft.com/expression/products/download.aspx?key=media

Make sure you also download the update (you see the link on the right hand side).

See also Tim Sneath's blog about how to pack and upload a Silverlight Streaming application.

http://blogs.msdn.com/tims/archive/2007/04/30/silverlight-streaming-is-now-live.aspx

Post again if something doesn't work.

HTH,
Laurent
Title  
Name
Email (never displayed)
Url
Comments   
Please add 6 and 8 and type the answer here: