Skip to main content
Home Forums General Silverlight Hosting and Streaming Windows Live does not stream SilverLight
25 replies. Latest Post by Slung on July 14, 2008.
(0)
Slung
Member
17 points
22 Posts
07-10-2008 11:20 PM |
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
607 points
265 Posts
07-11-2008 2:05 AM |
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
2 points
1 Posts
07-11-2008 5:44 AM |
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
07-11-2008 12:57 PM |
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.
07-13-2008 10:07 AM |
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.
07-13-2008 1:30 PM |
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!
07-13-2008 1:34 PM |
Here is what Manifest.xml looks like in VS. It was loaded up as part of the ZIP file upload into SLS.
<
</
07-13-2008 1:45 PM |
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:
scene.xaml has:
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
07-13-2008 10:16 PM |
hmmm.. wats the structure of the files in your ZIP file? I think you might have zipped up the wrong root position.
07-13-2008 10:41 PM |
Thanks for the help.
Inside of my PageTurn.zip, the structure is:
assets.zip
js.zip
manifest.zip
xaml.zip
07-13-2008 10:58 PM |
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>
07-13-2008 10:59 PM |
ok.. that's DEFINELTY wrong. ;)
anyway it should be something like
manifest.xmlassets/pageturn.xamlassets/page2.xamljs/script1.jsjs/script2.js
and so on,basically, you keep the folders around and not zip them up.
07-13-2008 11:23 PM |
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?
07-13-2008 11:30 PM |
Should SOURCE in Manifest be: PageTurn/xaml/mainpage.xaml or PageTurn/xaml/scene.xaml?
07-13-2008 11:33 PM |
This is what MSDN says:
Create a ZIP Archive
In Solution Explorer, right-click the project name and select Open Folder in Windows Explorer.
Inside the folder, create a new .zip archive named PageTurn.zip.
Add manifest.xml, along with the assets, js, and xaml folders, to the archive.
07-13-2008 11:42 PM |
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!
07-13-2008 11:50 PM |
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:
5. Updated the Manifest
6. Click on "Launch Test Page"
7. Received a Silverlight Error number 2104: InitializeError ;-(
07-13-2008 11:59 PM |
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 ;-(
07-14-2008 12:04 AM |
Correction,
Got a Silverlight Error Message
Error Code: 4001
ErrorType: Image Error
Message: AG_E_Network_Error
keep trying I think you're almost there. I'd try it but I'm at work right now. so.. good luck!
07-14-2008 12:08 AM |
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 Ch...
Star
13862 points
1,803 Posts
07-14-2008 12:14 AM |
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
07-14-2008 12:22 AM |
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
07-14-2008 1:27 AM |
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,
07-14-2008 1:52 AM |
Allen, It worked. Thanks!
07-14-2008 2:50 PM |
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?