Blend 4错误加载设计器:HRESULT E_FAIL [英] Blend 4 error loading designer: HRESULT E_FAIL

查看:62
本文介绍了Blend 4错误加载设计器:HRESULT E_FAIL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个错误一直在发生,但最近看起来它仍然存在。简而言之,我在Blend 4中打开的解决方案中的每个.xaml,我得到错误:

This error has been coming and going, but lately it looks like it's there to stay. In short, every .xaml from the solution that I open in Blend 4, i get the error:

"异常:错误HRESULT E_FAIL已从调用COM组件返回。

"Exception: Error HRESULT E_FAIL has been returned from a call to a COM component.

StackTrace

StackTrace

MS.Internal.XcmlImports.CheckHResult(UInt32 hr)

at MS.Internal.XcmlImports.CheckHResult(UInt32 hr)

at MS.Internal System.Windows上MS.Internal.XcpImports.Collection_InsertDependencyObject [T] ...

at MS.Internal.XcpImports.Collection_InsertValue[T]...

的.XcpImports.Collection_InsertValue [T] ...

at MS.Internal.XcpImports.Collection_InsertDependencyObject[T]...

.PresentationFrameworkCollection`1.InsertDependencyObject ...

at System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject...

在System.Windows.Controls.UIElementCollection.InsertInternal"

at System.Windows.Controls.UIElementCollection.InsertInternal"

 

毋庸置疑,这意味着我无法在Blend的设计视图中工作。对于简单的"从头开始"而言,项目设计师工作,我没有得到错误。所以似乎项目中存在一些问题。

Needless to say, this means I can't work at all in design view in Blend. For a simple "from-scratch" project the designer works and I don't get the error. So it seems there's something in the project bugging it.

我知道如何找出问题所在吗?

Any idea how I can find out what the problem is?

 

推荐答案

有时这是由其中一个XAML资源文档中未解析的引用引起的(我刚刚在我的Generic.xaml中修复了一个未解析的引用,现在错误消失了)。你可以下载ReSharper,该工具应该指出XAML中的任何问题

Sometimes this is caused by unresolved references inside one of the XAML resource documents (I just fixed one of those unresolved reference inside my Generic.xaml and now the error is gone). You can download ReSharper and that tool should point out any problems inside the XAML.


这篇关于Blend 4错误加载设计器:HRESULT E_FAIL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆