VS2010不能载入设计器问题的解决
来源:互联网 发布:网络选修课李肖鸣答案 编辑:程序博客网 时间:2024/06/05 02:24
安装好所有的SilverLght组件后,使用VS2010新建一个SilverLght应用程序后,双击MainPage.xaml会提示错误,设计器不能加载,而此时代码完全是由系统生成,根本没有进行任何修改,所以不是代码的问题。错误提示如下:
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()
一下是vs2010产生的代码:<UserControl x:Class="FirstSliverlight.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
<Grid x:Name="LayoutRoot" Background="White">
</Grid>
</UserControl>
以及错误列表中的提示:错误 1 未将对象引用设置到对象的实例。 D:/My workspace/SilverLight/FirstSliverlight/FirstSliverlight/MainPage.xaml 1 1 FirstSliverlight
错误 2 在“D:/My workspace/SilverLight/FirstSliverlight/FirstSliverlight/MainPage.xaml”上引发了 System.NullReferenceException: 未将对象引用设置到对象的实例。 D:/My workspace/SilverLight/FirstSliverlight/FirstSliverlight/MainPage.xaml 1 1 FirstSliverlight
经过很长时间的折磨,终于找到了解决办法:
先把所有与siverlight有关的silverlight,silverlightsdk,silverlight_tools ,silverlight toolkit,全部卸掉,然后重装,然后启动2010,打开原来的silverlight的项目OK,新建项目也OK。
嗯,当然这不是我想出来的,所以下面是原来文章的链接地址:
http://blog.csdn.net/david_xgl/article/details/6424084
- VS2010不能载入设计器问题的解决
- VS2010\2008中不能新建项目问题的解决
- 解决皮肤控件skinEngine不能在vs2010使用的问题
- 解决vs2010下不能创建项目及文件的问题
- 解决VS2010 C++ DLL不能断点调试的问题
- jboss 不能载入自定义类的问题
- MFC VS2010 GDI+载入图片的一些问题
- vs2010下载入设计器异常问题(费了3天的时间终于解决)
- 解决讨厌的VS2008不能打开vs2010所创建的项目问题
- VS2013 解决不能看HTML设计的问题
- VS2010不能断点/下断的问题
- VS2010不能断点/下断的问题
- VS2010不能断点/下断的问题
- 解决ISO7的Cydia载入慢的问题
- MyEclipse载入时莫名退出问题的解决[00原创]
- 解决ionic 2载入速度慢的问题
- 解决matlab无法载入vlfeat库的问题
- paip.silverlight设计器载入异常NullReferenceException问题。
- diaoche
- Linux平台开发技术指南
- CFont
- sharepoint面试题
- shell 脚本中将输出内容赋值给一个变量时的换行问题
- VS2010不能载入设计器问题的解决
- Qt鼠标事件总结
- 线程交互
- python多个版本的共存问题
- 数字签名和数字证书解释
- Windows下架设本机上Subversion服务器
- mp3比特池技术
- My97日期控件
- 关于OpenGL 2D纹理贴图的经验总结,