Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

Posted: May 10, 2011 in .NET
Tags: , , , , ,

I was getting this error today when trying to use the designer view of a Windows Form with the visio active x control. I would imagine this same error could occur for any COM call.

Warning 45 Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

Or you may see an error like –

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

This could be a DLL error in some cases, but in this case, it was a conflict with an extension or extension framework for Visual Studio. After disabling the ‘Productivity Power Tools’ extension and restarting VS, the problem disappeared.

It’s confusing because there was no problem in the last several weeks I have been working with this. I had already tried cleaning the solution and restarting the computer but it had no effect. After it started working again, I re-enabled the ‘Productivity Power Tools’ extension to try and recreate the issue, but was unsuccessful.

At this point I cannot say exactly what caused it, but disabling extensions is a good starting point to troubleshooting VS issues.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s