From: FR on
Hi guy,
Anyone have a list of error code who return by HttpException.ErrorCode
property?
Anyone say ho means error code -2147467259?
I need to intercept when post size it' major than 4Mb.. request are too
large.
thanks a lot
Rick
From: Peter Duniho on
FR wrote:
> Hi guy,
> Anyone have a list of error code who return by HttpException.ErrorCode
> property?
> Anyone say ho means error code -2147467259?

In hex, that's 0x80004005, and it looks like a Windows "HRESULT" to me.
You can often get a formatted string in .NET for HRESULT values by
calling Marshal.GetExceptionForHR() and then looking at the Message
property of the exception.

If you only need the message for your own use, you can try to look it up
on MSDN or in the Windows SDK header files for C/C++. That particular
code corresponds to "E_FAIL", or "Unspecified failure", which
unfortunately is just the general-purpose "this API wasn't able to do
what you wanted it to do".

Pete