Silverlight 2.0 page appears blank on the webserver
Last post 05-06-2008 7:07 AM by Rui-Marinho. 6 replies.
Sort Posts:
05-05-2008 1:42 PM
Silverlight 2.0 page appears blank on the webserver

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

Rui-Marinho

Joined on 03-19-2008
Posts 50
05-05-2008 11:45 PM
Re: Silverlight 2.0 page appears blank on the webserver

Hi:

  Is the xap name correct? I cannot download the xap file.

http://iffiretv.ifthensoftware.com/ClientBin/iffire_TV.xap

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Allen Chen – MSFT

Joined on 03-16-2007
Posts 717
05-06-2008 4:36 AM
Re: Silverlight 2.0 page appears blank on the webserver

yes the xap is there and with the correct name..

 

Rui-Marinho

Joined on 03-19-2008
Posts 50
05-06-2008 4:38 AM
Re: Silverlight 2.0 page appears blank on the webserver

Hi:

  Do you mean you can download that xap file? I got HTTP Error 404. I think that's why we got a blank page.

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Allen Chen – MSFT

Joined on 03-16-2007
Posts 717
05-06-2008 5:14 AM
Re: Silverlight 2.0 page appears blank on the webserver

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

Rui-Marinho

Joined on 03-19-2008
Posts 50
05-06-2008 6:10 AM
Re: Silverlight 2.0 page appears blank on the webserver

Hi:

  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();

          
        }

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Allen Chen – MSFT

Joined on 03-16-2007
Posts 717
05-06-2008 7:07 AM
Marked as Answer
Re: Silverlight 2.0 page appears blank on the webserver

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

Rui-Marinho

Joined on 03-19-2008
Posts 50