Skip to main content
Home Forums General Silverlight Hosting and Streaming Silverlight 2.0 page appears blank on the webserver
6 replies. Latest Post by Rui-Marinho on May 6, 2008.
(0)
Rui-Marinho
Member
146 points
89 Posts
05-05-2008 1:42 PM |
I have a web project that works very well in my local machine and in my IIS7, but when i copy it to the my webserver i get a blank page, silverlight is there but in dosent show anything..
can see it here http://iffiretv.ifthensoftware.com/iffire_TVTestPage.aspx
i added the mime types, xaml e xap...
how can i discover whats wrong? could it be because it is in a sub domain?
thanks, Rui
Allen Ch...
Star
13862 points
1,803 Posts
05-05-2008 11:45 PM |
Hi:
Is the xap name correct? I cannot download the xap file.
http://iffiretv.ifthensoftware.com/ClientBin/iffire_TV.xap
Regards
05-06-2008 4:36 AM |
yes the xap is there and with the correct name..
05-06-2008 4:38 AM |
Do you mean you can download that xap file? I got HTTP Error 404. I think that's why we got a blank page.
05-06-2008 5:14 AM |
No, i can't download either, but the file is there, i double cheked by the FTP and it's there, scould it be somethigh related with permissions of the ClientBin fodler? or from the webserver?
i already add the mime typees necessary
05-06-2008 6:10 AM |
Maybe. Please check the permission. Anyway I think we can bypass this problem. Try this to see if it works:
<asp:Silverlight ID="Xaml1" runat="server" Source="~/Default.aspx" Version="2.0" Width="100%" Height="100%" />
In Default.aspx:
protected void Page_Load(object sender, EventArgs e) { Response.Clear();
Response.AppendHeader("content-disposition", "attachment; filename=" + "SilverlightApplication24.xap");
Response.ContentType = "application/s-silverlight-app"; string FilePath = MapPath("ClientBin/SilverlightApplication24.xap");
Response.WriteFile(FilePath); Response.End();
}
05-06-2008 7:07 AM |
well i discover the problem, it was mime types, when i add the mime types to the domain, it dosen't extend to the sub domain. this case iffiretv.ifthensoftware
thanks for the help