System.NullReferenceException未将对象引用设置为对象的实例

所以,我明白了

System.NullReferenceException Object reference not set to an instance of an object. at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.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项目时出错。 文件>新建> Prooject> Visual C#> Silverlight> Silverlight应用程序。

  • “禁用在新网站中托管silverlight应用程序”

  • Silverlight版本:4

我的笔记本电脑上没有这个问题,它与我的家用电脑完全相同。

怎么了? 我怎样才能解决这个问题?

ps ..这个错误出现在我打开的任何silverlight项目中。 是否是我已经在努力的新人之一。

[更新]

但如果我安装了silverlight 5,那么当我开始一个新项目时,我不能选择这个吗? 我仍然只能选择Silverlight 3和Silverlight 4。

另外,正如您提供的链接中所述,我的“程序和特征”中没有明智的5。

但是,在谷歌搜索如何检查silverlight版本..我被发送到寄存器检查Silverlight的版本密钥。

关键是我的版本是:5.1.10411.0

如果我的程序和function中没有silverlight 5,我怎么能删除silverlight 5?

这可能是由于将Silverlight升级到版本5引起的。来自social.msdn.microsoft.com的报价:

您似乎已将Silverlight版本升级到Silverlight 5.如果是这样,您可能需要卸载silverlight 5和4,然后在http://go.microsoft.com/fwlink/?LinkID=188039安装SilverLight 4开发人员运行时。

另外,请看这里