2

所以,我明白了

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 项目时出错。文件 > 新建 > 项目 > Visual C# > Silverlight > Silverlight 应用程序。

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

  • Silverlight 版本:4

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

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

ps ..这个错误出现在我打开的任何silverlight项目中。不管它是我已经在研究的一个新的。

[更新]

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

另外,如您提供的链接中所述,我的“程序和功能”中没有 silverlight 5。

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

关键说我的版本是:5.1.10411.0

如果我的程序和功能中没有 silverlight 5,我该如何删除 silverlight 5?

4

1 回答 1

2

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

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

另外,请看这里

于 2012-06-13T12:54:56.820 回答