调试时调用COM组件VS2012已返回错误HRESULT E_FAIL [英] Error HRESULT E_FAIL has been returned from a call to a COM component VS2012 when debugging

查看:42
本文介绍了调试时调用COM组件VS2012已返回错误HRESULT E_FAIL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调试从 Visual Studio 2010 迁移到 2012 的项目时遇到问题.每次我去调试它时,我都会收到错误消息:

I have a problem debugging a project migrated from Visual Studio 2010 to 2012. Every time I go to debug it I get the error message:

调用 COM 组件时返回了错误 HRESULT E_FAIL".

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

在本地 IIS 服务器中编译和运行应用程序工作正常 - 只是无法调试.

Compiling and running the application in a local IIS server works fine - just cannot debug.

除了迁移到 VS2012 之外的另一个变化是我现在使用 Team Foundation Server 进行源代码控制和问题跟踪 - 但我看不出这会如何影响它.

The other change other than moving to VS2012 is I am now using Team Foundation Server for source control and issue tracking - but I cannot see how that would affect it.

我可以缩小到以下内容

  • 项目文件 - 它已从 VS 2003 作为网站项目迁移,并已被切碎并更改为不同版本
  • Crystal Report 运行时库/其他一些库

有人有什么想法吗?

推荐答案

我删除了 csproj.user 文件,它对我有用.

I removed the csproj.user files and it worked for me.

在其他一些情况下,要修复此错误,我转到项目属性中的 Web 选项卡并选中使用 Visual Studio 开发服务器"和自动分配端口".之后我需要重建项目并重新启动VS

In some other cases, to fix this error, I go to Web tab in the project properties and check "Use Visual Studio Development Server" and "Auto-assign Port". After that I need to rebuild the project and restart VS

这篇关于调试时调用COM组件VS2012已返回错误HRESULT E_FAIL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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