Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

silverlight 2/3 mess RSS

9 replies

Last post Jun 22, 2009 07:05 AM by alok572

(0)
  • GaryDean

    GaryDean

    Member

    164 Points

    311 Posts

    silverlight 2/3 mess

    Jun 13, 2009 12:07 AM | LINK

    I have a silverlight 3 app on MachineOne (that does not use any 3 features).  It wont run at my public website because the browser plug in won't handle 3.  To I copy the project to MachineTwo that has only Silverlight2.  I take care to replace the System.Web.Silverlight.dll with the version 2 dll.  I build the website using 2 and deploy it to my public website.  However the page still comes up with the message box saying that the plug-in is obsolete.  So, despite my attempts to backdown this website to version 2 it somehow remains 3.  What did I forget?

    Thanks

    Gary

  • Ken Tucker

    Ken Tucker

    All-Star

    23246 Points

    3532 Posts

    Re: silverlight 2/3 mess

    Jun 13, 2009 11:05 AM | LINK

    I do not think that you can downgrade a program written with the silverlight 3 tools to silverlight 2.  The dll files that your silverlight app uses will be for the wrong version of silverlight. 

  • GaryDean

    GaryDean

    Member

    164 Points

    311 Posts

    Re: silverlight 2/3 mess

    Jun 13, 2009 02:16 PM | LINK

    Sorry, I don't understand your comment.  I said I replaced the Silverlight 3 dll with the Silverlight 2 dll.  All there is is the xaml and the code and the dlls.  "the tools" simply result in the xaml.  Right? what else is there?

    Gary

  • Drucik

    Drucik

    Member

    16 Points

    3 Posts

    Re: silverlight 2/3 mess

    Jun 13, 2009 04:52 PM | LINK

    Hi,

    Are you checked minRuntimeVersion param on silverlight object in page?
    It's look like this param is set to Silverlight 3 and you see message that plugin is obsolete.

    Full code:
      <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>

  • GaryDean

    GaryDean

    Member

    164 Points

    311 Posts

    Re: silverlight 2/3 mess

    Jun 14, 2009 12:50 AM | LINK

    I see that this object is only in the generated html page which I don't even use.  In my project is says version 2 for both the 3 and 2 versions of silverlight so I don't think this has anything to do with my issue.

    Thanks

    Gary

  • Maud

    Maud

    Contributor

    3551 Points

    483 Posts

    Re: silverlight 2/3 mess

    Jun 18, 2009 07:29 AM | LINK

    In aspx page, change minimumversion to 2.0

    <asp:Silverlight ID="Silverlight1" runat="server" EnableFrameRateCounter=true Source="~/ClientBin/WriteableBitmapTest1.xap" MinimumVersion="2.0" Width="100%" Height="100%" />

    and here is a thread discuss about degrading silverlight project v3 to v2, please have a look

    http://silverlight.net/forums/t/97090.aspx

    Maud
  • alok572

    alok572

    Member

    336 Points

    64 Posts

    Re: Re: silverlight 2/3 mess

    Jun 18, 2009 09:52 AM | LINK

     Why dont you use Silverlight 3.0 on all the machines. It wil solve much of your problems of compatibility as all silverlight 2.0 tools/controls are compatible with 3.0.

     

     

    Mark as answer if i've helped you.

    Mark as answer if i have helped you.
  • GaryDean

    GaryDean

    Member

    164 Points

    311 Posts

    Re: silverlight 2/3 mess

    Jun 18, 2009 04:16 PM | LINK

    That minimum version entry is the same on SL3 projects.  My project does not use any SL3 widgets so it turns out that all I had to do was substitute the System.Web.Silverlight.dll from the 3 version to the 2 version.

  • GaryDean

    GaryDean

    Member

    164 Points

    311 Posts

    Re: Re: Re: silverlight 2/3 mess

    Jun 18, 2009 04:18 PM | LINK

    I'm putting up functionality on a public website and the public browser add-in won't run silverlight 3 yet.

  • alok572

    alok572

    Member

    336 Points

    64 Posts

    Re: Re: Re: Re: silverlight 2/3 mess

    Jun 22, 2009 07:05 AM | LINK

    Hi,

    You want to use it now and so you cant use the 3.0 version, but to view the 3rd button you need the same version you have developed the button in.

    Its better that you use the button control for the 2.0 version.

     

     

    Mark as answer if i've helped you...

     

    Mark as answer if i have helped you.