创建silverlite应用程序时Visual Studio 2010设计视图错误

创建silverlite应用程序时Visual Studio 2010设计视图错误

问题描述:

在VS的设计视图中创建sillverlite应用程序时显示以下错误 

While creating sillverlite application in design view of VS shows the following error 

System.NullReferenceException

对象引用未设置为对象的实例。

在Microsoft.Windows.Design.Platform。 SilverlightMetadataContext.SilverlightXamlExtensionImplementations。< GetXmlNamespaceCompatibilityMappings> d__8.MoveNext()

在MS.Internal.Design.Metadata.ReflectionProjectNode.BuildS ubsumption()

在MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(标识符标识符)

在MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope,IParseContext context)

在MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent,PrefixScope parentScope,IParseContext context,IMarkupSourceProvider provider)

在MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors)

在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()

在MS.Internal.Host.PersistenceSubsystem.Load()

在MS.Internal.Host.Designer.Load()

在MS.Internal.Designer.VSDesigner.Load()

在MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()

在MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView视图)

在MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory,IsolatedView视图)

在MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory,IsolatedView视图)

在MS.Internal.Host.Isolation.IsolatedDesigner.Load()

在MS.Internal.Designer.DesignerPane.LoadDesignerView()

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()

我该如何纠正这个错误?

嗨Somasekar,

Hi Somasekar,

这是一个Siverlight问题,如果你发布到

This is a Siverlight issue, If you post it to


http://forums.silverlight.net/  
Silverlight论坛,您将获得更好,更快的回复。

感谢您的理解!