我想在Silverlight 3.0创建一个 “Hello World” 应用程序,但它运行的时候,有一个错误:(IE 8)Silverlight将不会加载
错误:
Unhandled Error in Silverlight Application
Code: 2104
Category: InitializeError
Message: Could not download the Silverlight application. Check web server settings
当创建项目,我选择举办一个新的网站(ASP.net Web应用程序项目)的Silverlight应用程序
这里是我的代码:
<UserControl x:Class="Test.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">
<TextBlock Text="Hello World!"/>
</Grid>
</UserControl>
我也试图在Firefox中运行,但它在那里也不工作。
有没有人知道如何解决这个问题?
如何将MIME类型添加到从VS 2008运行的ASP.NET开发服务器? – eflles 2009-08-07 10:02:29
安装Silverlight工具,他们会正确设置它。 – 2009-08-07 10:59:16