Skip to main content

Microsoft Silverlight

Answered Question Windows Live does not stream SilverLightRSS Feed

(0)

Slung
Slung

Member

Member

17 points

22 Posts

Windows Live does not stream SilverLight

After uploading the SilverLight app in zipped file---as required by Windows Live SilverLight Streaming upload site, created the manifest and embed the application as a frame, the SilverLight app does not display in IE. Tried it directly on the "Microsoft SilverLight Stream" site directly by clicking "Launch Application Test Page (To preview this application)" The app did not display neither.

 

In fact, download one showcase and uploaded onto MS SL Streaming site, it did not display neither.

 

Anyone had similar experience?

 What might be causing the problem?

Thanks.

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Windows Live does not stream SilverLight

you can't just drop the app into SLS and edxpect it to work, especially if you're calling any exgternal resources or stuff like that.

babyfface
babyfface

Member

Member

2 points

1 Posts

Re: Windows Live does not stream SilverLight

 

MarauderzMY:

you can't just drop the app into SLS and edxpect it to work, especially if you're calling any exgternal resources or stuff like that.

THNX 

Slung
Slung

Member

Member

17 points

22 Posts

Re: Windows Live does not stream SilverLight

Not using any external resources. All scripts are in the zip file that was loaded into Windows Live SilverLight Stream Beta site. Like to hear from someone who had been able to upload to the site and got it working. Anyone who has a success story?

 

SL rocks---if only I can have it working on the web, it runs fine on the local machine.

 

Thanks.

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Re: Windows Live does not stream SilverLight

I have uploaded multiple applications to SLS already, its hard to say what's wrong with yours unless well I guess best case scenario is that if you can share the code with us.

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Windows Live does not stream SilverLight

Hi MarauderzMY, Thanks for the post. Can I have your Email ID so that I can send my code to you? Or, I just post the whole thing on this board? I have re-wrok everything again, following the steps in http://msdn.microsoft.com/en-us/library/bb851609.aspx, the pageturn runs fine in VS08, after I uploaded into Windows Live SilverLight Streaming, I got: "SilverLight Error Code 214, Intialization error, can not download SilverLight app, check your web server setting"

 

Look forward to your pointers, be glad to post the code, just he XAML's?

 

Thanks!

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Windows Live does not stream SilverLight

Here is what Manifest.xml looks like in VS. It was loaded up as part of the ZIP file upload into SLS.

<SilverlightApp>

<source>xaml/scene.xaml</source>

<version>1.0</version>

<width>900</width>

<height>740</height>

<background>black</background>

<framerate>24</framerate>

<jsOrder>

<js>js/ptOnLoad.js</js>

</jsOrder>

</SilverlightApp>

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Windows Live does not stream SilverLight

Used: "PageTurn/xaml/scene.xaml" or "PageTurn/xaml/mainpage.xaml" as "Source*" in manifest, both resulted in error 2104 when clicked on test launch app on sls.

Mainpage.xaml has:

"

<Canvas

xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Loaded="onMainPageLoaded"

x:Name="MainCanvas">

</Canvas>"

 

scene.xaml has:

"

<Canvas

xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

Loaded="ptOnLoad"

x:Name="MainCanvas">

<Canvas.Resources>

<!-- Timer Storyboard -->

<Storyboard BeginTime="0" Duration="0:0:0" x:Name="timerStoryboard"/>

</Canvas.Resources>

<Canvas Canvas.Top="50" x:Name="PageCanvas">

<!-- shadow behind book -->

<Image Canvas.Top="25" Canvas.Left="455" Source="assets/page00.jpg" Opacity="0.8"/>

<Image x:Name="shadowBehindPage01" Canvas.Top="25" Canvas.Left="36" Opacity="0" IsHitTestVisible="false" Source="assets/page00.jpg"/>

<Canvas x:Name="evenPageCanvas" Canvas.Top="30" Canvas.Left="460" Opacity="1"/>

<Polygon x:Name="shadowOnEvenPage" Canvas.Top="30" Canvas.Left="460" Points="420,570 420,570 420,570 420,570" Fill="Black" Opacity="0.25"/>

<Canvas x:Name="oddPageCanvas" Canvas.Top="30" Canvas.Left="40" Opacity="1"/>

<Canvas x:Name="mouseCaptureCanvas" Canvas.Top="30" Canvas.Left="40" Opacity="0" IsHitTestVisible="false" Background="transparent" Width="840" Height="570"/>

</Canvas>

<!-- ***************************** -->

<!-- THUMBNAILS FOR BROWSING PAGES -->

<!-- ***************************** -->

<!-- Donwload Progress UI -->

<!-- Annotate, Clear Ink Buttons -->

</Canvas>"

 The JavaScripts in the sls manifest are:

PageTurn/js/inkManager.js
   PageTurn/js/inkButtons.js
   PageTurn/js/pageBrowserButton.js
   PageTurn/js/pageBrowserControl.js
   PageTurn/js/pageGenerator.js
   PageTurn/js/navigationManager.js
   PageTurn/js/thumbnail.js
   PageTurn/js/mainPage.js
   PageTurn/js/ptOnLoad.js

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

hmmm.. wats the structure of the files in your ZIP file? I think you might have zipped up the wrong root position.

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

Thanks for the help.

Inside of my PageTurn.zip, the structure is:

assets.zip

js.zip

manifest.zip

xaml.zip

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

I first created PageTurn.zip as an empty folder for my VS2008 Project PageTurn, using Windows Explorer.

Then I sent "assets folder" to a zip folder, created assets.zip, then moved assets.zip into PageTurn.zip.

Repeated the same process for: js.zip, manifest.zip and xaml.zip

 

My manifest in VS is as follow:

 

<SilverlightApp>
  <source>xaml/scene.xaml</source>
  <version>1.0</version>
  <width>900</width>
  <height>740</height>
  <background>black</background>
  <framerate>24</framerate>
  <jsOrder>
    <js>js/ptOnLoad.js</js>
  </jsOrder>
</SilverlightApp>

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

ok.. that's DEFINELTY wrong. ;)

 anyway it should be something like

manifest.xml
assets/pageturn.xaml
assets/page2.xaml
js/script1.js
js/script2.js

and so on,basically, you keep the folders around and not zip them up.

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

Thanks. So, I create an empty PageTurn.zip, then place the following into it?

manifest.xml

assests (a folder)

js (a folder)

xaml (a folder with mainpage.xaml and scene.xaml)

 

And upload the above through "Manage Application" on: https://silverlight.live.com/Application.aspx?setName=PageTurn?

 

After upload, do you have any idea how the Manifest should be edited?

Thanks.

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

Should SOURCE in Manifest be: PageTurn/xaml/mainpage.xaml or PageTurn/xaml/scene.xaml?

Thanks!

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

This is what MSDN says:

Create a ZIP Archive

  1. In Solution Explorer, right-click the project name and select Open Folder in Windows Explorer.

  2. Inside the folder, create a new .zip archive named PageTurn.zip.

  3. Add manifest.xml, along with the assets, js, and xaml folders, to the archive.

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

you shouldn't need to edit the manifest after uploading.

and.. I think the main xaml file *should* be

xaml/scene.xaml

cause there's no more pageturn folder mar.  

i guess it would be better if I actually done this before :P but sorry I don't have time to do this, keep trying!

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

1. Re-did the PageTurn.zip file contents as you suggested.

2. Uploaded PageTurn.zip onto SLS.

3. Made SOURCE in Manifest to be: "PageTurn/xaml/mainpage.xaml"

4. Added all these JS in Script Files at the end of the Manifest:

PageTurn/js/inkManager.js
   PageTurn/js/inkButtons.js
   PageTurn/js/pageBrowserButton.js
   PageTurn/js/pageBrowserControl.js
   PageTurn/js/pageGenerator.js
   PageTurn/js/navigationManager.js
   PageTurn/js/thumbnail.js
   PageTurn/js/mainPage.js
   PageTurn/js/ptOnLoad.js

5. Updated the Manifest

6. Click on "Launch Test Page"

7. Received a Silverlight Error number 2104: InitializeError ;-(

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

1. Removed "PageTurn" from all directory structure (in SOURCE and Script Files) in Manifest.

2. Updated Manifest.

3. Launch Test Page

4. Only the Title is displayed on the test page, had "error on the page" on the lower left corner of IE---no Silverlight 2104 Error this time, but no app neither ;-(

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

Correction,

Got a Silverlight Error Message

Error Code: 4001

ErrorType: Image Error

Message: AG_E_Network_Error

MarauderzMY
MarauderzMY

Member

Member

607 points

265 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

keep trying I think you're almost there. I'd try it but I'm at work right now. so.. good luck!

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Windows Live does not stream SilverLight

Changed SOURCE in Manifest to: xaml/mainpage.xaml

updated Manifest

Launched Test Page

No error message, but no app neither---just the Title page in IE;-(

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

Re: Windows Live does not stream SilverLight

Hi:

  Besides the document is not very accurate. Please try this in ptOnLoad.js :

function ptOnLoad(sender)
{
    var scene = new PageTurn(18);    
    var obj = sender.getHost();
    scene.handleLoad(obj, null, sender);
}

if (!window.Sys)
    window.Sys = {};
   
if (!window.Silverlight)
    window.Silverlight = {};

Silverlight.createDelegate = function(instance, method) {
    return function() {
        return method.apply(instance, arguments);
    }
}

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

Answered Question

Re: Windows Live does not stream SilverLight

Hi:

  If you still have problems please download the project directly:

http://cid-2fa13ebc6cc8e80f.skydrive.live.com/self.aspx/Public/PageTurn.zip

  Effect:

http://silverlight.services.live.com/invoke/64474/PageTurn/iframe.html

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Windows Live does not stream SilverLight

Hi Allen,

 Changed ptOnLoad.js, still did not see the app.

 Should xaml/maimpage.xaml be the SOURCE in Manifest?

Should all the js files be placed in Script Files in Manifest?

 

Thanks,

 

SL

ps I have sent you a mail with more details,

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Windows Live does not stream SilverLight

Allen, It worked. Thanks!

Slung
Slung

Member

Member

17 points

22 Posts

Re: Re: Windows Live does not stream SilverLight

Hi Andy,

 

After I un-zip the zip file you provided, changed one js (pagegenerator), zip it gain and upload into SLS, SLS is asking for manifest again. Have I done something incorrectly?

 

Thanks.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities