Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Decode HResult = -2147467259

Tags:

hresult

Can someone help me decode this HResult? What does it mean? I know the negative stands for a failure. How about the rest of the 10 bits?

I referenced MSDN HResult article here, but I am not sure how to determine what my facility and code bits are.

More info:

_message: "External component has thrown an exception."
Data: {System.Collections.ListDictionaryInternal}

like image 996
CYC0616 Avatar asked Mar 18 '14 23:03

CYC0616


People also ask

How to DEcode Windows error code?

If Windows reports a simple error number like 1, 2, 13, 1065, you may ask the operating system for error details. Just open the command prompt windows (typing cmd in search bar and press enter key). This will show the error message associated to this code in plain text.

What is HResult code?

HRESULT is a computer programming data type that represents the completion status of a function. It is used in the source code of applications targeting Microsoft Windows and earlier IBM/Microsoft OS/2 operating systems, but its design does not limit its use to these environments.

What is HResult in exception C#?

Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. public: property int HResult { public: int get(); protected: void set(int value); }; public: property int HResult { int get(); void set(int value); }; protected: property int HResult { int get(); void set(int value); };


3 Answers

I'll show you how to do it. Paste the negative number into Calculator (Windows) in programmer mode "Dec" setting. Then convert to "Hex" setting. You get the number: FFFFFFFF80004005. The error is 80004005 which is:

0x80004005
E_FAIL
Unspecified 

Unfortunately the provider of the function that gave you this error did not categorize the error.

Useful links:

  1. MSDN - HRESULT Format
  2. MSDN - HRESULT Error List
like image 125
Chris Avatar answered Oct 17 '22 22:10

Chris


Print it as an hexadecimal number, then, use for instance, VisualStudio ErrorLookup, to get the message.

like image 22
BenjaminB Avatar answered Oct 17 '22 22:10

BenjaminB


-2147467259 in decimal is 80004005 in hexadecimal (usually rendered as 0x80004005). That's "E_FAIL (Unspecified error)" in Win32.

Not a very helpful error code, but maybe it'll get you a half-step closer to a solution.

like image 3
Michael Petrotta Avatar answered Oct 17 '22 22:10

Michael Petrotta