Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Silverlight 2.0 page appears blank on the webserver RSS

6 replies

Last post May 06, 2008 11:07 AM by Rui-Marinho

(0)
  • Rui-Marinho

    Rui-Marinho

    Member

    146 Points

    89 Posts

    Silverlight 2.0 page appears blank on the webserver

    May 05, 2008 05:42 PM | LINK

    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 Chen –...

    Star

    14215 Points

    1854 Posts

    Microsoft

    Re: Silverlight 2.0 page appears blank on the webserver

    May 06, 2008 03:45 AM | LINK

    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

    146 Points

    89 Posts

    Re: Silverlight 2.0 page appears blank on the webserver

    May 06, 2008 08:36 AM | LINK

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

     

  • Allen Chen – MSFT

    Allen Chen –...

    Star

    14215 Points

    1854 Posts

    Microsoft

    Re: Silverlight 2.0 page appears blank on the webserver

    May 06, 2008 08:38 AM | LINK

    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

    146 Points

    89 Posts

    Re: Silverlight 2.0 page appears blank on the webserver

    May 06, 2008 09:14 AM | LINK

    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 Chen –...

    Star

    14215 Points

    1854 Posts

    Microsoft

    Re: Silverlight 2.0 page appears blank on the webserver

    May 06, 2008 10:10 AM | LINK

    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

    146 Points

    89 Posts

    Re: Silverlight 2.0 page appears blank on the webserver

    May 06, 2008 11:07 AM | LINK

    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