首页 新闻 会员 周边

Silveerlight 加载设计器 System.NullReferenceException

0
[待解决问题]

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()

卸载重装几次都不行..新建开始都是这样..寻求高手解决...

邱帆的主页 邱帆 | 初学一级 | 园豆:0
提问于:2011-06-19 21:22
< >
分享
所有回答(1)
0

xaml后台代码问题吧,设计器会调用构造函数,所以我给出这个解释。

补充:看看是不是有SL4.0以前的版本同时存在;

或者看看是不机子中毒,安装的程序文件被隔离;

还不行,建议重装系统,重装VS2010,然后重装SL。要搞开发,先要有一台稳定健康的开发环境。

InFuture | 园豆:325 (菜鸟二级) | 2011-06-20 08:05
我新建的页面也有这样的问题....
支持(0) 反对(0) 邱帆 | 园豆:0 (初学一级) | 2011-06-20 09:14
那你是确定是开发环境问题了,而非自己原因。那更好办了。重新找台机器,或者重装系统也可以。然后在干净的系统上安装VS2010,再安装SL4.0,如果需要Blend4,也可以安装上去。
这套系统本身是没有问题的,已经有千千万万的人装过了,而且正在使用。
支持(0) 反对(0) InFuture | 园豆:325 (菜鸟二级) | 2011-06-20 09:29
我现在只怀疑三个方面:1,Silverlight版本是不是4.0,VS2010要求4.0版本,如果之前装了低版本SL就会有问题,不能混装。2,是不是中毒了,杀毒软件将你的安装的文件给隔离或者删除了,造成缺少文件定义。总之,重装系统绝对是最快的一种方式,以我的经验来说。
支持(0) 反对(0) InFuture | 园豆:325 (菜鸟二级) | 2011-06-20 09:32
非常感谢你!我安装都是正确的,我另一个同事安装环境都是和我一样的就可以..搞的我郁闷,卸载了再安装也是一样的。。
支持(0) 反对(0) 邱帆 | 园豆:0 (初学一级) | 2011-06-20 12:10
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册