VS2010创建silverlight程序出错

pygnzj 2011-11-30 11:36:58
VS2010 创建一个 silverlight的时候 设计器里面提示发生了未经处理的异常

详细信息:

System.NullReferenceException
未将对象引用设置到对象的实例。
在 Microsoft.Windows.Design.Platform.SilverlightMetadataContext.SilverlightXamlExtensionImplementations.<GetXmlNamespaceCompatibilityMappings>d__8.MoveNext()
在 MS.Internal.Design.Metadata.ReflectionProjectNode.BuildSubsumption()
在 MS.Internal.Design.Metadata.ReflectionProjectNode.SubsumingNamespace(Identifier identifier)
在 MS.Internal.Design.Markup.XmlElement.BuildScope(PrefixScope parentScope, IParseContext context)
在 MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider)
在 MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.FullParse(Boolean convertToXamlWithErrors)
在 MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem()
在 Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem()
在 Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState()
在 MS.Internal.Host.PersistenceSubsystem.Load()
在 MS.Internal.Host.Designer.Load()
在 MS.Internal.Designer.VSDesigner.Load()
在 MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
在 MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
在 MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
在 MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
在 MS.Internal.Host.Isolation.IsolatedDesigner.Load()
在 MS.Internal.Designer.DesignerPane.LoadDesignerView()

求高手解决啊
...全文
256 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
pygnzj 2011-11-30
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 findcaiyzh 的回复:]
Seems the best way is to uninstall everything SL and reboot. Download Silverlight4_Tools.exe (30319.315) - NOT the Web Platform Installer from silverlight.net/getstarted/ - and re-install.

Everythi……
[/Quote]

这个没看明白
pygnzj 2011-11-30
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 findcaiyzh 的回复:]
Seems the best way is to uninstall everything SL and reboot. Download Silverlight4_Tools.exe (30319.315) - NOT the Web Platform Installer from silverlight.net/getstarted/ - and re-install.

Everythi……
[/Quote]

这个没看明白
pygnzj 2011-11-30
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 bdmh 的回复:]
自己跟踪吧,访问了不存在的对象
[/Quote]

创建的时候就出错了,怎么跟踪呢
宝_爸 2011-11-30
  • 打赏
  • 举报
回复
Seems the best way is to uninstall everything SL and reboot. Download Silverlight4_Tools.exe (30319.315) - NOT the Web Platform Installer from silverlight.net/getstarted/ - and re-install.

Everything now works, but the runtime version is STILL showing as 2.0.5.0 in references. Is the correct?

来自http://forums.silverlight.net/t/189593.aspx/1
不过可能和你的问题不是同样原因引起的。
宝_爸 2011-11-30
  • 打赏
  • 举报
回复
看stack Trace全是微软的代码啊, MS应该是微软吧。

没碰到过,不行重装吧。
bdmh 2011-11-30
  • 打赏
  • 举报
回复
自己跟踪吧,访问了不存在的对象
pygnzj 2011-11-30
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 net_lover 的回复:]
意思是:
卸载计算机上所有版本的Silverlight,

然后安装 VS2010 sp1(可选:http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=75568AA6-8107-475D-948A-EF22627E57A5),

再安装 Microsoft Silverlight 4 Tools for Visua……
[/Quote]

谢谢了,我去试试
孟子E章 2011-11-30
  • 打赏
  • 举报
回复
意思是:
卸载计算机上所有版本的Silverlight,

然后安装 VS2010 sp1(可选:http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=75568AA6-8107-475D-948A-EF22627E57A5),

再安装 Microsoft Silverlight 4 Tools for Visual Studio 2010

http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=B3DEB194-CA86-4FB6-A716-B67C2604A139

111,097

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧