Deployment pb, what should exactly be deployed ?

4 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 30 Nov 2009 Link to this post

    Hello,

    I built a 'RadSilverlight application' using vs2008 and Q309, it runs Ok on the dev station.
    My next step was to load dynamically my application using this king of code of a more general 'Silverlight loader':

            protected void Page_Load(object sender, System.EventArgs e)  
            {  
                if ( !IsPostBack )  
                {  
                    StringBuilder sb    =   new StringBuilder();  
                    string silverSrc    =   SilverAppFullPath;  
                    Unit wdt            =   "100%";  
                    Unit hgt            =   "100%";  
                    sb.AppendFormat("<object  data=\"data:application/x-silverlight-2\" type=\"application/x-silverlight-2\" width='{0}' height='{1}'>",wdt,hgt);  
                    sb.AppendFormat("<param name='source' value='{0}'/>",silverSrc.TrimStart(new char[]{'/'}));  
                    sb.Append("<param name='onError' value='onSilverlightError' />");  
                    sb.Append("<param name='Windowless' value='true' />");  
                    sb.Append("<param name='background' value='white' />");  
                    sb.Append("<param name='minRuntimeVersion' value='3.0.40624.0' />");  
                    sb.Append("<param name='autoUpgrade' value='true' />" +  
                        "<href=\"http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0\" style='text-decoration:none'>" +  
                        "<img src=\"http://go.microsoft.com/fwlink/?LinkId=108181\" alt=\"Get Microsoft Silverlight\" style='border-style:none'/></a></object>");  
                    Literal lit     =   new Literal();  
                    lit.Text = sb.ToString();  
                    silverplaceholder.Controls.Add(lit);  
                }  
            }  
     

    My hosting apsx page is a radajax page containing RadAjaxManager and ScriptManager with some other RadAjax.net components.
    SilverAppFullPath contains something as "Portals/_MyPortal/SilverApps/Default/MySilverApp.xap.

    Silverlight seem to be correctly loaded but I get a silverlight error catched by onSilverlightError javascript std script:
    Code "2104" Category "InitializeError" Message "2104 an Error has occured"

    I have cheked :
    1) the IIS MIME setting contains all recommanded types
    2) I have installed in GAC all the Telerik silverlight assemblies.
    3) the same javascripts as in dev project get loaded in he aspx page

    So what is missing between the dev workstation and this server ?

    Thanks you for help.
    CS
  2. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 30 Nov 2009 Link to this post

    Hello,

    I got it, I was missing the ',' after silverlight-2 in
                    sb.AppendFormat("<object  data=\"data:application/x-silverlight-2,\" type=\"application/x-silverlight-2\" width='{0}' height='{1}'>",wdt,hgt);  
     

    What is the meaning of this ',' ?
    I was not used to this with <object> ?

    Thanks

    CS
  3. DevCraft banner
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 03 Dec 2009 Link to this post

    Hi Christian,

    Frankly speaking, I don't know the exact purpose of that comma. As far as I know, it is related to the mime type of the silverlight content, but that's all. Near the end of this article, just above the summary section there is a brief explanation for those attributes:
    http://timheuer.com/blog/archive/2009/03/23/silverlight-3-beta-install-guidance.aspx

    Greetings,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 03 Dec 2009 Link to this post

    Interesting link thank you Valeri.
    CS
Back to Top