0

Visual Studio を Silverlight 3 から Silverlight 4 に更新したところ、この異常なエラー メッセージが表示されるようになりました。

ここに画像の説明を入力

いくつプロジェクトを作成しても同じです。Visual Studioと私のマシンを再起動しましたが、それでも同じです

更新: イメージからスタック トレースをコピーしました

System.NullReferenceException
Object reference not set to an instance of an object.
   at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.<GetXmlNamespaceCompatibilityMappings>d__8.MoveNext()
   at MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption()
   at MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier)
   at MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context)
   at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider)
   at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors)
   at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem()
   at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem()
   at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState()
   at MS.Internal.Host.PersistenceSubsystem.Load()
   at MS.Internal.Host.Designer.Load()
   at MS.Internal.Designer.VSDesigner.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()
4

2 に答える 2

1

Silverlight 4 ランタイムをインストールすることでこれを解決しました。Visual Studio で提案された前提条件の更新リンクをクリックするたびに、最新バージョンがインストールされます。これは現在、私が望んでいたものではなかった Silverlight 5 ランタイムです。機能を壊す最新バージョンをインストールする代わりに、どれをインストールするかを選択するオプションが与えられれば問題ありません。

Silverlight 5 ランタイムをアンインストールし、これらのリンクを使用して、resintall バージョン 4 を作成しました。

私が使用したリンクは次のとおりです。

この回答で提案

于 2012-12-18T12:34:07.677 に答える
0

古いバージョンを参照するとこのエラーが発生するため、更新されたバージョンの新しい参照を追加する必要があります

于 2012-12-18T05:44:21.637 に答える