Skip to main content

Microsoft Silverlight

Unanswered Question Alpha 1.1 Refresh breaking changes - Silverlight.jsRSS Feed

(0)

jameshollister
jameshol...

Member

Member

12 points

3 Posts

Alpha 1.1 Refresh breaking changes - Silverlight.js

I'm trying to fix the breaking changes that were caused by the Alpha 1.1 Refresh release, but am running into a wall.

I downloaded the new 1.1 SDK and changed my app to use the new Silverlight.js file, but it looks like they have the wrong one in there. 
The header in .js file looks like this 

///////////////////////////////////////////////////////////////////////////////
//
// Silverlight.js version 1.0
//
// This file is provided by Microsoft as a helper file for websites that
// incorporate Silverlight Objects. This file is provided under the Silverlight
// SDK 1.0 license available at http://go.microsoft.com/fwlink/?linkid=94240.
// You may not use or distribute this file or the code in this file except as
// expressly permitted under that license.
//
// Copyright (c) 2007 Microsoft Corporation. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////

And when i run it, it redirects the user to the install page for the 1.0 RC instead of the 1.1 Alpha.  Does anyone know where I can get the real 1.1 silverlight.js. 




James Hollister
Ascending Integration Inc.
www.AscendingIntegration.com

Silverlight Demo - Khet Online
www.AscendingIntegratin.com/KhetDemo

jameshollister
jameshol...

Member

Member

12 points

3 Posts

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

In case anyone else is having the same problem, we were able to find a real copy of the 1.1 Silverlight.js file on the Silverlight Airlines demo.

We've implemented all of the changes caused by the Alpha Refresh and you can find the javascript file at our Khet Demo Game:

http://ascendingintegration.com/khet/scripts/silverlight.js




James Hollister
Ascending Integration Inc.
www.AscendingIntegration.com

Silverlight Demo - Khet Online
www.AscendingIntegratin.com/KhetDemo

Psychlist1972
Psychlis...

Contributor

Contributor

6040 points

973 Posts

MicrosoftModerator

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

Excellent, thanks! That's exactly what I needed

Pete

Silverlight.net Moderator
MVP: Silverlight, Silverlight Insider
Author: Silverlight in Action, 2nd Edition
POKE 53280,0 - My Blog

Opinions are my own. Oh, and I don't work for Microsoft.

levere
levere

Member

Member

4 points

2 Posts

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

jameshollister:

I tried replacing my silverlight.js file with this one but it's still directing users to the 1.0 RC download. Is there anything else that needs to be changed?

jackbond
jackbond

Contributor

Contributor

2820 points

725 Posts

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

Is it possible that your browser is caching the Silverlight.js file? You might want to try forcing a refresh, ctrl-f5 in IE, dunno what it is in other browsers.

levere
levere

Member

Member

4 points

2 Posts

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

I tried that as I too thought that might have been the problem. I even cleared the browser cache just in case but still no luck. The page still displays the RC link instead of the Alpha link...

Loonababe
Loonababe

Member

Member

6 points

5 Posts

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

Hey guys, i've found a way how to get the new Aolpha 1.1. working. Not only the Silverlight.js file has to be adjusted, but also the CreateSilverlight.js file.

I took the Silverlight.js file from above and formatted it a little bit. Maybe it'll now be easier to detect possible errors in it.

I've tested my Silverlight example in Firefox, IE and Opera. IE and Firefox played it fine and in Opera the image with the link to the Alpha 1.1 download page shows up.

Here's the code:
http://2ouruniverse.piranho.com/Silverlight.js
http://2ouruniverse.piranho.com/createSilverlight.js

Cheers

jackbond
jackbond

Contributor

Contributor

2820 points

725 Posts

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

You shouldn't need to be tinkering with the Silverlight.js file, that's practically part of the Silverlight framework.

Psychlist1972
Psychlis...

Contributor

Contributor

6040 points

973 Posts

MicrosoftModerator

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

Normally I would agree, except they provided the wrong Silverlight.js file with the 1.1 Alpha Refresh SDK bits. The SDK silverlight.js simply doesn't work.

In my version (in my replacement add-in template), I replaced the whole Silverlight.js with one that a person on the forums here found in one of the other MSFT 1.1 examples.

Pete

Silverlight.net Moderator
MVP: Silverlight, Silverlight Insider
Author: Silverlight in Action, 2nd Edition
POKE 53280,0 - My Blog

Opinions are my own. Oh, and I don't work for Microsoft.

jackbond
jackbond

Contributor

Contributor

2820 points

725 Posts

Re: Alpha 1.1 Refresh breaking changes - Silverlight.js

Psychlist1972:
Normally I would agree, except they provided the wrong Silverlight.js file with the 1.1 Alpha Refresh SDK bits. The SDK silverlight.js simply doesn't work.

Sorry, I should have elaborated a bit more. You definitely need to get the Silverlight.js for the refresh from somewhere other than the SDK. That said, tinkering with the correct Silverlight.js is probably just asking for trouble down the road.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities