G
gdesai
OleDbException: c#
I have stored procedure, which raises exception.
In normal connection, OleDbException returns exact error
in ex.Errors[0].NativeError. But when I star6t my
connection in multithreading environment it returns
{System.Data.OleDb.OleDbException}
System.Runtime.InteropServices.ExternalException:
{System.Data.OleDb.OleDbException}
oledbErrors: {System.Data.OleDb.OleDbErrorCollection}
message: "No error information available: E_FAIL
(0x80004005)."
source: null
ErrorCode: -2147467259
Errors: {System.Data.OleDb.OleDbErrorCollection}
Message: "No error information available: E_FAIL
(0x80004005)."
Source: ""
There is no Errors collection available in exception
object.
If I do not start collection in multithreading
envirognment I get exact error in
ex.Errors[0].NativeError.
It is very important for me to get exact error from store
procedure.
Can anyone help.
gdesai
I have stored procedure, which raises exception.
In normal connection, OleDbException returns exact error
in ex.Errors[0].NativeError. But when I star6t my
connection in multithreading environment it returns
{System.Data.OleDb.OleDbException}
System.Runtime.InteropServices.ExternalException:
{System.Data.OleDb.OleDbException}
oledbErrors: {System.Data.OleDb.OleDbErrorCollection}
message: "No error information available: E_FAIL
(0x80004005)."
source: null
ErrorCode: -2147467259
Errors: {System.Data.OleDb.OleDbErrorCollection}
Message: "No error information available: E_FAIL
(0x80004005)."
Source: ""
There is no Errors collection available in exception
object.
If I do not start collection in multithreading
envirognment I get exact error in
ex.Errors[0].NativeError.
It is very important for me to get exact error from store
procedure.
Can anyone help.
gdesai