VS2010/Silverlight Designer未经治疗的异常



我有VS2010 10.0.30319.1 rtmrel和silverlight 4安装了。

让我清楚地表明,我在没有任何设计师问题的情况下从事了几个项目。

我不记得与VS或Silverlight 4混乱,但是今天,当我打开一个项目并试图调整Web应用程序的UI时,设计师不会加载。我创建了一个新项目,也发生了同样的事情。以下是例外。任何帮助将不胜感激。

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

发生在我身上时,这意味着我已经破坏了代码中的某些内容。设计师本质上正在运行您的Silverlight代码以生成预览 - 因此,这将是首先要研究的事情。

其次 - 当您查看任何Silverlight XAML时,这会发生吗?如果创建一个新的Silverlight项目,您是否会遇到同样的问题。如果是这样,那么您已经以某种方式弄乱了安装。

我在Silverlight 5和VS2010设计师度过了很多快乐时光,所以我认为那里没有一个基本问题。

最新更新