1

変更されていない新しい Silverlight プロジェクトで XAML ファイルの読み込みが失敗するのはなぜですか?

Visual Studio 2010 を使用している現在のマシンで Silverlight プロジェクトを開始するのはこれが初めてです。これまで、私は ASP.NET でプログラミングを行ってきました。

新しい Silverlight プロジェクトを初めて開始しようとしたとき、Silverlight の新しいコピーをインストールする必要があると言われました。Silverlight と Silverlight SDK のバージョンをアンインストールする必要がありました。アンインストールして再インストールした後 (現在、Microsoft Silverlight 5.1.20513.0 と Silverlight 4 SDK 4.0.50826.0 を使用しています)、最終的に Silverlight プロジェクトを作成することができました。しかし、XAML コードはすぐに IDE に読み込まれませんでした

http://i67.photobucket.com/albums/h292/Athono/ASP_DOT_NET%20and%20CSS/outofthegate02_zps0bd33d95.png

<UserControl x:Class="SilverlightApplication4.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:DesignHeight="300" d:DesignWidth="400">

<Grid x:Name="LayoutRoot" Background="White">

</Grid>

http://i67.photobucket.com/albums/h292/Athono/ASP_DOT_NET%20and%20CSS/outofthegate01_zpse0f20845.png

   System.NullReferenceException

オブジェクト参照がオブジェクト インスタンスに設定されていません。Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.d__8.MoveNext() で MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption() で MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace (識別子識別子) で MS MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope 親スコープ、IParseContext コンテキスト)、MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement 親、PrefixScope 親スコープ、IParseContext コンテキスト、IMarkupSourceProvider プロバイダー)、MS.Internal.Design.DocumentModel Microsoft の MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() の .DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors)

助言がありますか?

4

0 に答える 0