首页 新闻 赞助 找找看

vs2010新建一个silverlight项目,就抛出下面异常

0
悬赏园豆:5 [已关闭问题] 关闭于 2011-08-10 14:11

System.ArgumentNullException
值不能为 null。
参数名: parentContext
   在 Microsoft.Windows.Design.Metadata.ReflectionMetadataContext..ctor(IMetadataContext parentContext)
   在 MS.Internal.Host.ProjectMetadataContext..ctor(IMetadataContext platformMetadata, AssemblyReferenceProvider referenceProvider)
   在 MS.Internal.Host.ProjectMetadataContext.FromReferences(AssemblyReferenceProvider referenceProvider)
   在 MS.Internal.Designer.VSDesigner.GetMetadataForDesignerContext(DesignerContext designerContext)
   在 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()

问题补充:

现在已经解决了,将原来的silverlight和sdk都卸载了,下载了最新的silverlight和sdk重新安装就好了。

柠檬绿松的主页 柠檬绿松 | 初学一级 | 园豆:40
提问于:2011-07-21 10:42
< >
分享
所有回答(1)
0

是不是你的Silverlight SDK木有装好?或者是Silverlight的项目模板没有装好.建议重装下试试!

蓦然回手 | 园豆:202 (菜鸟二级) | 2011-07-22 13:55
前两天还用来着,后来新建silverlight就不行了
支持(0) 反对(0) 柠檬绿松 | 园豆:40 (初学一级) | 2011-07-25 10:13
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册