Welcome Developers!

in

Welcome!

in

Is Silverlight still supported on MOP?

Last post 02-05-2010 3:38 AM by Tom. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-29-2009 12:16 PM

    • John
    • Top 200 Contributor
    • Joined on 02-02-2008
    • Posts 27

    Is Silverlight still supported on MOP?

    I tried to upload a Silverlight XAP file today and got the following error:

    Invalid file type: .xap. Only .swf flash files are supported.

    The prompts in the source editor say Silverlight is supported and .xap files can be uploaded. Has the policy changed and Silverlight is no longer supported, or is this a bug?

    Filed under:
  • 12-04-2009 3:41 PM In reply to

    Re: Is Silverlight still supported on MOP?

     Hey, John.

     This appears to be a bug.  It's expecting a different value from the PanelType radio button than what is sent when uploading Flash (or SilverLight).  I'll look into getting this fixed.  In the mean time, it appears you could fool the form by intercepting the form post and setting the form value PanelType="OpenSocial"

     

  • 12-07-2009 10:38 AM In reply to

    Re: Is Silverlight still supported on MOP?

     Thanks, Chris.

     

    -Joel

  • 02-04-2010 2:15 PM In reply to

    Re: Is Silverlight still supported on MOP?

     In looking into this more, it appears to just be misleading UI flow. If you scroll down to the bottom of the page on the surface editor, you will see an "Upload" box.  Specify your .xap file here.  Do not specify as an "Inline Flash" item at the top of the page.

     In order to upload a silverlight app, do the following:

    1. Open your app source in the app surface editor ("Edit Source" button from app list).
    2. Click the view surface name you wish to modify.
    3. Make sure the radio button "HTML/JavaScript Source" is selected.
    4. Scroll to the bottom of the page below the large text box to see the upload box by the label "Upload source file:"
    5. Click the "Browse" button to select your .xap file from the local file system.
    6. Scroll back to the top of the page and click "Save Application Source"

    Your source .xap (or .fla) will upload to MySpace's servers and an appropriate object embed tag will be generated.

     

  • 02-04-2010 3:55 PM In reply to

    • Tom
    • Top 500 Contributor
    • Joined on 01-05-2010
    • Posts 23

    Re: Is Silverlight still supported on MOP?

    A couple of things to note:

    When you upload it the first time it works correctly and adds the appropriate html with the correct xap file name, but subsequent times it does not update the xap file name so you need to right click on the name right above "Browse" button, select "Copy link" and then paste it over the old xap name.

    There is a bug (times out) when uploading large xap files.  Not sure how big, but under 1MB seems to work and at 2.5MB it fails.

    Another thing (and this may be my problem) is that the query string that the silverlight app gets, appears to be different when you run in dev mode and live mode (it's missing a bunch of info including ownerId and viewerId in live mode).

    The 2 dlls for Silverlight (I think their called; Opensocial and MyOpenspace) are not signed and therefore cannot be used if your silvelright app is signed, and I have not found any source for them.  I ended up not using them and writing some Javascript to communicate with Silverlight.

    Tom

     

  • 02-04-2010 7:10 PM In reply to

    Re: Is Silverlight still supported on MOP?

     Thanks for bringing these issues to our attention.  We'll look into them further.

    WRT the querystring issue, I'm surprised you get that info when in dev mode.  Typically that info is only passed on the hash to help the browser cache the results.  Using the javascript values is the perscribed method for getting any of this information.

     

  • 02-05-2010 3:38 AM In reply to

    • Tom
    • Top 500 Contributor
    • Joined on 01-05-2010
    • Posts 23

    Re: Is Silverlight still supported on MOP?

    Hey, great book BTW!

    Just 2 small comments:

    1. The book goes from a very simple "Hello World" example straight to a more complicated one, it should ramp up a little slower.

    2. The book describes how to get photos and albums but I couldn't find anywhere were it shows how to iterate through the values, and that's what I've been stuck on.  I now do it using REST, but javascript would be nice.

    Thanks

    Tom

     

Page 1 of 1 (7 items)