System.NullReferenceException对象引用不设置到对象的实例 [英] System.NullReferenceException Object reference not set to an instance of an object

查看:3074
本文介绍了System.NullReferenceException对象引用不设置到对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我得到这个

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

error when I create a new silverlight project. File > New > Prooject > Visual C# > Silverlight > Silverlight Application.


  • 主机在一个Silverlight应用程序新网站已禁用

  • "Host the silverlight application in a new Web Site" is disabled

的Silverlight版本:4

Silverlight version: 4

我没有拥有完整的安装为我的家用电脑一样的我的笔记本电脑这个问题。

I don't have this problem on my laptop which has the complete same installation as my home pc.

什么是错的?我该如何解决这个问题?

What is wrong? How can I fix this?

PS ..这个错误在任何Silverlight项目我打开显示出来。无论是对一个人的我已经在努力。

ps.. this error shows up in ANY silverlight project I open. Whether it's a new one of the one's i've already been working on.

[更新]

但是,如果我的Silverlight 5安装,不会我可以选择这个时候我开始一个新项目?我仍然只能选择Silverlight的3和Silverlight 4。

But IF I have silverlight 5 installed, wouldn't I be able to choose this when I start a new project? I can still only choose Silverlight 3 and Silverlight 4.

此外,如你给的链接说,我没有siverlight 5在我的程序和Featues。

Also, as stated in the link you gave, I have no siverlight 5 in my "Programs and Featues".

然而,如何检查的Silverlight版本的谷歌搜索..我发送到寄存器,以检查出的Silverlight的版本密钥。

However, a search on google on how to check silverlight version.. I got send to the register to check out a Version Key of silverlight.

关键说我的版本是:5.1.10411.0

The key says my version is: 5.1.10411.0

如果没有的Silverlight 5在我的程序和功能,我怎么可以删除的Silverlight ?5

If there's no silverlight 5 in my Programs and Features, how I can remove silverlight 5?

推荐答案

这是有可能造成从的 social.msdn.microsoft.com

看来你你的Silverlight版本升级到Silverlight的5.如果是这样你可能需要卸载的Silverlight 5和4,然后在的 http://go.microsoft.com/fwlink/?LinkID=188039

It seems you upgraded your version of silverlight to Silverlight 5. if so you may need to Uninstall silverlight 5 and 4 then Install SilverLight 4 developer runtime at http://go.microsoft.com/fwlink/?LinkID=188039.

另外,看到的这里

这篇关于System.NullReferenceException对象引用不设置到对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆