Nov 18, 2010

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

"Error HRESULT E_FAIL has been returned from a call to a COM component." Sounds familiar? 
This error gets thrown across so many places in a whole gamut of microsoft products. But, this post is specific to Silverlight. I would assume that, if you have the source code for the project you are debugging with VS, you should be able to pin point to the exact location of errors and exceptions no matter what caused it. But the above error is very tricky. Even if you have the code in place, VS debugger won't point to the exact location not does it give a meaningful stack information. This is a problem with layered programming languages like .NET and anything built on top of it. If you were to do unmanaged programming, you may have more diagnostic information to look at.

No comments:

Post a Comment