在"System.Windows.Baml2006.TypeConverterMarkupExtension"上提供值时引发了异常
我原先的系统是win8的后来自动升级到8.1然后vs2010和sqlserver2012就不能正常使用了;后来我重新安装了vs2010和sqlserver2012,其中卸...
我原先的系统是win8的后来自动升级到8.1然后vs2010和sqlserver2012就不能正常使用了;后来我重新安装了vs2010和sqlserver2012,其中卸载了很多相关的东西;在8.1情况下打开vs后新建项目就会出现在"System.Windows.Baml2006.TypeConverterMarkupExtension"上提供值时引发了异常 这种情况,如果直接打开项目就会重新启动vs不管是不是以管理员身份运行都一样;sql是启动后新建查询就会提示不能正常运行正在关闭,有时会报调试或关闭;求知道的大神帮个忙 指导指导
展开
2个回答
2016-06-16
展开全部
图片路径用完整相对路径试试。
"/项目名称;component/图片相对路径"
举个例子:
<ImageBrush ImageSource="/WpfApplication1;component/Images/bz-head001.jpg" />
"/项目名称;component/图片相对路径"
举个例子:
<ImageBrush ImageSource="/WpfApplication1;component/Images/bz-head001.jpg" />
追问
这个是在哪里进行修改的?
我是在打开vs后新建项目报的错
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Hi steveostl,
Thanks for your post.
Which kind of project do you want to create? Does it a WPF template?
Your issue appears to be a template corrupt issue. To fix it, please follow some steps below:
1. Open your Control panel -> Programs -> Programs and Features, right click Microsoft Visual Studio 2010 -> Uninstall/Change -> repair/reinstall
2. Open Windows Explorer, and navigate to <Visual Studio Installation Path>\Common7\IDE (by default is C:\Program Files \Microsoft Visual Studio 10.0\Common7\IDE);
3. Delete the ItemTemplatesCache, ProjectTemplatesCache folder;
4. Open Visual Studio Command Prompt (2010) under Start menu -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);
5. Run the devenv /InstallVSTemplates switch;
6. Run the devenv /Setup switch
If above steps cannot reset the templates, please refer to the following link:
http://stackoverflow.com/questions/2402924/wpf-templates-error-provide-value-on-system-windows-baml2006-typeconverterma
http://social.msdn.microsoft.com/Forums/eu/wpf/thread/cfa1a133-3424-4fc6-b523-7a4cea5f8f3b
http://social.msdn.microsoft.com/Forums/hu/wpf/thread/dd7a7179-6330-4a32-bf83-ea1b0e9921b2
or this blog http://blog.themagicsoftware.com/2011/07/provide-value-on-system-windows-baml2006-typeconvertermarkupextension-threw-an-exception.html
Change the Assembly name or image maybe helpful on your issue, please try the solution listed on this links.
Additionally, it seems it is a known issue:
http://connect.microsoft.com/VisualStudio/feedback/details/685722/provide-value-on-system-windows-baml2006-typeconvertermarkupextension-threw-an-exception
http://connect.microsoft.com/VisualStudio/feedback/details/746977/provide-value-of-system-windows-baml2006-typeconvertermarkupextension-threw-an-exception#details
Hope this info can help.
Regards,
Thanks for your post.
Which kind of project do you want to create? Does it a WPF template?
Your issue appears to be a template corrupt issue. To fix it, please follow some steps below:
1. Open your Control panel -> Programs -> Programs and Features, right click Microsoft Visual Studio 2010 -> Uninstall/Change -> repair/reinstall
2. Open Windows Explorer, and navigate to <Visual Studio Installation Path>\Common7\IDE (by default is C:\Program Files \Microsoft Visual Studio 10.0\Common7\IDE);
3. Delete the ItemTemplatesCache, ProjectTemplatesCache folder;
4. Open Visual Studio Command Prompt (2010) under Start menu -> All Programs -> Microsoft Visual Studio 2010 -> Visual Studio Tools (run it with Administrator privilege: right-click the program -> Run as administrator);
5. Run the devenv /InstallVSTemplates switch;
6. Run the devenv /Setup switch
If above steps cannot reset the templates, please refer to the following link:
http://stackoverflow.com/questions/2402924/wpf-templates-error-provide-value-on-system-windows-baml2006-typeconverterma
http://social.msdn.microsoft.com/Forums/eu/wpf/thread/cfa1a133-3424-4fc6-b523-7a4cea5f8f3b
http://social.msdn.microsoft.com/Forums/hu/wpf/thread/dd7a7179-6330-4a32-bf83-ea1b0e9921b2
or this blog http://blog.themagicsoftware.com/2011/07/provide-value-on-system-windows-baml2006-typeconvertermarkupextension-threw-an-exception.html
Change the Assembly name or image maybe helpful on your issue, please try the solution listed on this links.
Additionally, it seems it is a known issue:
http://connect.microsoft.com/VisualStudio/feedback/details/685722/provide-value-on-system-windows-baml2006-typeconvertermarkupextension-threw-an-exception
http://connect.microsoft.com/VisualStudio/feedback/details/746977/provide-value-of-system-windows-baml2006-typeconvertermarkupextension-threw-an-exception#details
Hope this info can help.
Regards,
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询