B
blueturtle
Hi,
I has anybody encountered the following behaviour:
COM exception thrown from Outlook, when handled in .Net,
has different HRESULT every time, for the same error..
E.g.
I cause an exception by using a wrong filter in restrict (adding ZZZ)
Outlook.Items inboxItemsCollection;
inboxItemsCollection.Restrict("[ReceivedTimeZZZ >= '#2/23/2006
14:18#'")
I get exception:
"The property "ReceivedTimeZZZ" is unknown."
The value in class System.Runtime.InteropServices.COMException
of ErrorCode is -1317928951
and in another call it will be
ErrorCode -1005453303
on every call (exception), ErrorCode will get a different value.
Is this a known problem ? in Outlook ? Interop ?
It occurs on various methods, not just Restrict.
It is also discussed here:
http://groups.google.com/group/micr...orcode+hresult+outlook&hl=en#bca91332ac0e89f3
Thanks for any help.
Si.
I has anybody encountered the following behaviour:
COM exception thrown from Outlook, when handled in .Net,
has different HRESULT every time, for the same error..
E.g.
I cause an exception by using a wrong filter in restrict (adding ZZZ)
Outlook.Items inboxItemsCollection;
inboxItemsCollection.Restrict("[ReceivedTimeZZZ >= '#2/23/2006
14:18#'")
I get exception:
"The property "ReceivedTimeZZZ" is unknown."
The value in class System.Runtime.InteropServices.COMException
of ErrorCode is -1317928951
and in another call it will be
ErrorCode -1005453303
on every call (exception), ErrorCode will get a different value.
Is this a known problem ? in Outlook ? Interop ?
It occurs on various methods, not just Restrict.
It is also discussed here:
http://groups.google.com/group/micr...orcode+hresult+outlook&hl=en#bca91332ac0e89f3
Thanks for any help.
Si.