Geeks With Blogs

News




What I do:

Identity Mine

MVVM Light

GalaSoft


What I am:

Microsoft Most Valuable Professional, Client Application Development

Microsoft Certified Technology Specialist, Windows Presentation Foundation

WPF disciples


Social:


View my profile on LinkedIn

XING
Creative Commons License
Diary of a Code Trotter by Laurent Bugnion is licensed under a Creative Commons Attribution 3.0 Unported License

All source code on this blog is licensed under the MIT license.

Copyright (c) 2006 - 2011 GalaSoft Laurent Bugnion

Laurent Bugnion (GalaSoft) Diary of a Code Trotter

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.

Posted on Tuesday, July 10, 2007 6:26 PM Technical stuff , .NET , WPF , Silverlight | Back to top


Comments on this post: Silverlight Streaming: Careful with that application's name!

# re: Silverlight Streaming: Careful with that application's name!
Requesting 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.
Left by Marisa on Aug 24, 2007 3:48 AM

# re: Silverlight Streaming: Careful with that application's name!
Requesting 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
Left by Laurent on Aug 24, 2007 5:28 AM

Comments have been closed on this topic.
Copyright © Laurent Bugnion | Powered by: GeeksWithBlogs.net