本文介绍了我的Silver Light应用程序中出现System.NullReferenceException错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试创建银色灯光应用程序时,此错误出现在我身上.我使用Visual Studio 2010









when i try to create silver light application this error appear to me . i use visual studio 2010









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

推荐答案




这篇关于我的Silver Light应用程序中出现System.NullReferenceException错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 13:16