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':
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
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' />" + |
"<a 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