Skip to main content

Microsoft Silverlight

Answered Question Silverlight 2.0 page appears blank on the webserverRSS Feed

(0)

Rui-Marinho
Rui-Marinho

Member

Member

146 points

89 Posts

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

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

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.

Rui-Marinho
Rui-Marinho

Member

Member

146 points

89 Posts

Re: Silverlight 2.0 page appears blank on the webserver

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

 

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

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.

Rui-Marinho
Rui-Marinho

Member

Member

146 points

89 Posts

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

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

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.

Rui-Marinho
Rui-Marinho

Member

Member

146 points

89 Posts

Answered Question

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities