首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

vs2010 打不开silverlight项目的设计视图提示异常如下

2012-03-18 
vs2010 打不开silverlight项目的设计视图提示错误如下:System.NullReferenceExceptionObject reference no

vs2010 打不开silverlight项目的设计视图提示错误如下:
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()
有谁遇到过类似的情况不,急需解决啊!!!不胜感激!!

[解决办法]
是你的页面里面有控件的属性绑定的时候没有初始值,请检查你的页面内控件带Binding的控件。

热点排行