Sunday, May 27, 2007

Windows Live Quantum Mechanics : Hello World with Silverlight and Silverlight Streaming

 Here is the manifest.xml file modified for Silverlightsout.

<SilverlightApp>
  <source>page.xaml</source>   
  <width>500</width>   
  <height>300</height>
  <inplaceInstallPrompt>false</inplaceInstallPrompt>
  <background>#D6D6D6</background>
  <framerate>24</framerate>
  <version>0.9</version>
  <isWindowless>false</isWindowless>
</SilverlightApp>

Source: Windows Live Quantum Mechanics : Hello World with Silverlight and Silverlight Streaming

After I added this to the zip file, and tried to upload, I got this error.

The following file names have file types not allowed in hosted applications: SilverlightsOut/ClientBin/LightsOut.pdb, SilverlightsOut/obj/Debug/LightsOut.pdb, SilverlightsOut/obj/Debug/Page.g.cs, SilverlightsOut/obj/Debug/ResolveAssemblyReference.cache, SilverlightsOut/Page.xaml.cs, SilverlightsOut/Properties/AssemblyInfo.cs, SilverlightsOut/SilverlightsOut.csproj, SilverlightsOut/SilverlightsOut.csproj.user, SilverlightsOut/SilverlightsOut.html, SilverlightsOut/SilverlightsOut.sln, SilverlightsOut/SilverlightsOut.suo, SilverlightsOut/Thumbs.db

Why doesn't it ask me to remove these files?  That would be a good feature to have to simplify deployments.  Another feature could be just the ability to right-click & deploy from Visual Studio to Silverlight Streaming server... will look into an add-in for that one!  I have already seen some code to upload an application, should not be too hard to roll that into a menu option.

Uploading the app worked, sort of.  It recognized a valid application and gave me some options to Upload an Updated  application, Launch the test page, and delete the app.  It also provided some sample code which I will probably need to add to the page template of Blogger, if it's possible.

<script type="text/javascript" src="http://agappdom.net/g/silverlight.js"></script>
<script type="text/javascript" src="CreateSilverlight.js"></script>

Launching the Application Test Page brought me to a grey Silverlight-enabled box.  Something tells me something isn't set up right.... :)

Next up, adding to the page template.

No comments: