This is a migrated thread and some comments may be shown as answers.

Deployment pb, what should exactly be deployed ?

3 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 30 Nov 2009, 10:09 AM
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

3 Answers, 1 is accepted

Sort by
0
CSurieux
Top achievements
Rank 2
answered on 30 Nov 2009, 12:29 PM
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
0
Valeri Hristov
Telerik team
answered on 03 Dec 2009, 11:36 AM
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.
0
CSurieux
Top achievements
Rank 2
answered on 03 Dec 2009, 11:52 AM
Interesting link thank you Valeri.
CS
Tags
General Discussions
Asked by
CSurieux
Top achievements
Rank 2
Answers by
CSurieux
Top achievements
Rank 2
Valeri Hristov
Telerik team
Share this question
or