Skip to main content

Microsoft Silverlight

Answered Question Get Microsoft Silverlight Control wont go awayRSS Feed

(0)

ScCrow
ScCrow

Member

Member

44 points

107 Posts

Get Microsoft Silverlight Control wont go away

Ive been jumping thru some hoops getting Silverlight 2 Beta 2 working, but thanks to a little help from a forum member, it seemed that I have finally got all the correct versions of things loaded.  I created a new Silverlight C# project, put a button on it with some minor code to change the button component text.

The compile is successful, the run appears to be successful.  I get a "Install Microsoft Silverlight" control when I run it.  I shouldnt be getting this since I just installed the SDK, tools etc.   And yes, I did run the prep tool and removed that one updated that needed to be zapped first. 

OK, I click the install.  It runs and is successful.  But nothing ever changes

The install control remains.  The Install control when clicked installs     Silverlight 2.0 exe  ... Application size 4.63MB.

From the control panel,  I see these

     Microsoft Silverlight                                                         2.0.31005.0
     Microsoft Silverlight 2 SDK Beta 2                                    2.0.30532.6
     Microsoft Silverlight Tools for Visual Studio 2008 - ENU      9.0.39729.143

     Microsoft Visual Studio Standard Edition -ENU
     Microsoft Visual Studio Web Authoring Component                                                              12.0.4518.1066
     Microsoft Wiondows SDK for Visual Studio 2008 Net Framework Tools - ENU                        3.5.21022
     Microsoft Wiondows SDK for Visual Studio 2008 Headers and Libraries                                 6.1.5288.17011
     Microsoft Wiondows SDK for Visual Studio 2008 SDK Reference Assemblies and Intellisense 6.1.5288.17011

So,,,before zapping it all and starting over, Im hoping someone has a good suggestion.

IanBlackburn
IanBlack...

Contributor

Contributor

2333 points

371 Posts

Answered Question

Re: Get Microsoft Silverlight Control wont go away

>> getting Silverlight 2 Beta 2 working

 Do you mean Silverlight 2 (RTW) - why would you work with Beta 2 now the final has been released?  From the control panel versions it looks as if you have the final version installed.Big Smile

So you need to make sure that the object tag (or asp.net control) you are using to create the silverlight plugin is using the correct version too.  It should be one of the following:

<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/SilverlightApplication1.xap" MinimumVersion="2.0.31005.0" Width="100%" Height="100%" />

or

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
   <param name="source" value="ClientBin/SilverlightApplication1.xap"/>
   <param name="onerror" value="onSilverlightError" />
   <param name="background" value="white" />
   <param name="minRuntimeVersion" value="2.0.31005.0" />
   <param name="autoUpgrade" value="true" />
   <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
        <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
   </a>
  </object>

 Hope that helps.

 

(If this has answered your question, "Mark as Answer" - many thanks)

Cheers

Ian Blackburn
SilverlightForBusiness.net

ScCrow
ScCrow

Member

Member

44 points

107 Posts

Re: Get Microsoft Silverlight Control wont go away

Perhaps the key here is  "why would you work with Beta 2 now the final has been released?"   I think the answer is massive confusion.  I actually thought I had installed the latest and greatest.

I did make the change you suggested, but it made no difference.  I then created a new solution and checked it.  It creates the following

     <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/TestPrj2.xap" MinimumVersion="2.0.30523.6" Width="100%" Height="100%" />

So, much as I hate to do it,  I think its time to uninstall everything and start over.  Maybe I can get it correct this time.

Thank for the info. 

 

IanBlackburn
IanBlack...

Contributor

Contributor

2333 points

371 Posts

Re: Get Microsoft Silverlight Control wont go away

May look like it - but it's only the VS tools you will need to re-install I think - so hopefully shouldn't take too much time...Wink

(If this has answered your question, "Mark as Answer" - many thanks)

Cheers

Ian Blackburn
SilverlightForBusiness.net

ScCrow
ScCrow

Member

Member

44 points

107 Posts

Re: Get Microsoft Silverlight Control wont go away

I bit the bullet and uninstalled everything.  That in itself was a pain.  THe uninstalls kept failing and I had to do some detective work just to get everything uininstalled.  For anyone else who may be reading this, be sure to uninstall the MSDN also and kill the process MDM.exe.

Anyway, after uninstalling, I went to the new Silverlight 2 webpage,  Installed and everything was fairly painless.  Its all working.

So thanks to Ian for pointing out to me that infact Silverlight is no longer in beta.   Big Smile

IanBlackburn
IanBlack...

Contributor

Contributor

2333 points

371 Posts

Re: Re: Get Microsoft Silverlight Control wont go away

Great to hear you have got it working!

 

(If this has answered your question, "Mark as Answer" - many thanks)

Cheers

Ian Blackburn
SilverlightForBusiness.net
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities