2010-06-24 19 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。

相關問題