Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Alpha 1.1 Refresh breaking changes - Silverlight.js
9 replies. Latest Post by jackbond on August 17, 2007.
(0)
jameshol...
Member
12 points
3 Posts
07-28-2007 1:59 AM |
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.
07-28-2007 12:04 PM |
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
Psychlis...
Contributor
6040 points
973 Posts
07-29-2007 12:30 PM |
Excellent, thanks! That's exactly what I needed
Pete
levere
4 points
2 Posts
08-08-2007 6:56 PM |
jameshollister: http://ascendingintegration.com/khet/scripts/silverlight.js
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
2820 points
725 Posts
08-08-2007 9:29 PM |
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.
08-09-2007 12:56 PM |
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
6 points
5 Posts
08-17-2007 7:10 AM |
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
08-17-2007 12:14 PM |
You shouldn't need to be tinkering with the Silverlight.js file, that's practically part of the Silverlight framework.
08-17-2007 4:42 PM |
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.
08-17-2007 5:05 PM |
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.