在"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是启动后新建查询就会提示不能正常运行正在关闭,有时会报调试或关闭;求知道的大神帮个忙 指导指导 展开
 我来答
匿名用户
2016-06-16
展开全部
图片路径用完整相对路径试试。
"/项目名称;component/图片相对路径"
举个例子:
<ImageBrush ImageSource="/WpfApplication1;component/Images/bz-head001.jpg" />
追问
这个是在哪里进行修改的?
我是在打开vs后新建项目报的错
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
sagie_cn
2019-02-10
知道答主
回答量:15
采纳率:0%
帮助的人:7.4万
展开全部
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,
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式