Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Page turn black screen? RSS

7 replies

Last post Jan 24, 2008 02:16 PM by SaeedTNT

(0)
  • jaypompano

    jaypompano

    Member

    14 Points

    3 Posts

    Page turn black screen?

    Dec 21, 2007 08:33 PM | LINK

    Hi Page Turn works on the Silverlight website, but when I download it and put it on my IIS and make it a virtual directory, when I navigate to it it just shows a black screen? I have framework 2.0 do I need 3.0?

    Can anyone help? Thanks.

  • robert.pieprzny

    robert.pieprzny

    Member

    116 Points

    37 Posts

    Re: Page turn black screen?

    Dec 21, 2007 09:13 PM | LINK

     I think you don't need 3.0 because I use 2.0. Send me a bit of your code maybe it's small mistake.

  • jaypompano

    jaypompano

    Member

    14 Points

    3 Posts

    Re: Page turn black screen?

    Jan 02, 2008 12:49 PM | LINK

    It's just the sample called page turn. Index.html contains...

    [

    <html xmlns="http://www.w3.org/1999/xhtml">
    <!-- saved from url=(0024)http://www.microsoft.com/ -->
    <head>
        <title>Silverlight Page Turn Sample</title>
        <script type="text/javascript" src="js/Silverlight.js"></script>
        <script type="text/javascript" src="js/createSilverlight.js"></script>
        <script type="text/javascript" src="js/inkManager.js"></script>
        <script type="text/javascript" src="js/inkButtons.js"></script>
        <script type="text/javascript" src="js/pageBrowserButton.js"></script>
        <script type="text/javascript" src="js/pageBrowserControl.js"></script>
        <script type="text/javascript" src="js/pageGenerator.js"></script>
        <script type="text/javascript" src="js/navigationManager.js"></script>
        <script type="text/javascript" src="js/thumbnail.js"></script>
        <script type="text/javascript" src="js/mainPage.js"></script>

    </head>

    <body style="margin: 0px; overflow: hidden;">
        <table height="99%" cellSpacing=0 cellPadding=0 width="100%" border=0>
            <tbody>
                <tr>
                    <td align=middle vAlign=middle bgcolor="#000000">
                        <div id="SilverlightControlHost">
                            <script type="text/javascript">

                                createSilverlight();
                            </script>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
    </html>

    ]

    and then there's the scripts associated with it and 2 xamls. I didn't change the code at all...Thanks.

  • UliA

    UliA

    Member

    23 Points

    17 Posts

    Re: Re: Page turn black screen?

    Jan 22, 2008 09:29 AM | LINK

    try this: open the project with visual studio or expression blend and press F5 (perhaps you first have to set the default.html as startup) 

  • Bill Reiss

    Bill Reiss

    Contributor

    4973 Points

    947 Posts

    Re: Page turn black screen?

    Jan 22, 2008 10:59 AM | LINK

    It could be that xaml is not added as a MIME type, details are here:

    http://blogs.technet.com/jorke/archive/2007/09/11/silverlight-mime-types-in-iis6.aspx


    Bill Reiss, Coauthor of Hello! Silverlight
    My blog
  • jaypompano

    jaypompano

    Member

    14 Points

    3 Posts

    Re: Re: Page turn black screen?

    Jan 22, 2008 02:19 PM | LINK

    THIS WORKED THANK YOU!

  • Bill Reiss

    Bill Reiss

    Contributor

    4973 Points

    947 Posts

    Re: Re: Page turn black screen?

    Jan 23, 2008 04:08 AM | LINK

    No problem, glad it helped.


    Bill Reiss, Coauthor of Hello! Silverlight
    My blog
  • SaeedTNT

    SaeedTNT

    Member

    4 Points

    2 Posts

    Re: Re: Page turn black screen?

    Jan 24, 2008 02:16 PM | LINK

    Is there any scripts when pages changed create colored page and animate close?