2010-06-24 21 views
0

,我得到了以下错误:能不能当我试图运行一个简单的,基本的Silverlight应用程序运行的基本Silverlight应用程序

Can't find the TestPage.html, Make sure the path or internet address is correct.

这里是我的XAML代码:

<UserControl x:Class="HelloWorld.MainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> 
    <Grid x:Name="LayoutRoot" Background="White"> 
     <TextBlock Text="Hello, World!" />  
    </Grid> 
</UserControl> 

这可能是什么原因?任何帮助将不胜感激。

谢谢。

+1

帕德玛,修复你的代码;如果可能的话,不要急于解答人的答案。他们帮你一个忙,不为你工作。 – Pierreten 2010-06-24 06:37:20

+0

尝试 funwithcoding 2010-06-24 08:54:10

回答

0

这听起来像是你的项目设置的问题。确保您的ASP.NET项目已正确设置为您的Silverlight项目为一个包含的Silverlight应用程序。此外,您还需要检查项目属性中的启动项目是否设置为现有页面。它可能不是TestPage.html。

相关问题