RE: Problem getting UserGUID from Exchange OnSave event sink

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

Based on my understanding, you wanted to do Exchange Server side event sink
with OnSave event.
But when the event fired and you are trying to access the
dispInfo.UserGuid, you will get the error description per your post.
**** EXCEPTION ****
Catastrophic failure (Exception from HRESULT: 0x8000FFFF
(E_UNEXPECTED))
**** STACKTRACE ****
at Interop.Exevtsnk.IExStoreDispEventInfo.get_UserGuid()
at EventSinkTest2.EventSinkTest.OnSave(IExStoreEventInfo evInfo,
String sURL, Int32 iFlags) in E:\Documents and
Settings\Administrator.EDIARY\My Documents\Visual Studio
2005\Projects\EventSinkTest2\EventSinkTest2\EventSinkTest.cs:line 105

From the exception, "Catastrophic failure" which is a general COM
exception, it is hard to guess what may be the problem.

But as your suspect, this may be a COM interop issue, to isolate the
problem, I suggest you try to sink the same event with a VBScript to see if
the problem persists.
Because to use C# to handle Event Sink, we need additional .NET com interop
library wrapper, to test with VBScript will help us to quick isolate the
problem is specific to the COM inteop layer
or the Exchange Server environment or configuration.

I will appreciate your efforts.

Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Outbound Appending
    ... This also shows I did read your posts!! ... It is strange that Microsoft has omitted this feature in Exchange Server ... > event sink would work just fine using the SMTP portion of IIS that can be ... > for outbound e-mail that appends a disclaimer. ...
    (microsoft.public.exchange.admin)
  • Event sink
    ... I'm trying to create an event sink that will process all e-mail coming in to ... a specific mailbox on my Exchange Server. ... OnArrival-type SMTP event sink in managed code by using Visual Studio .NET ...
    (microsoft.public.exchange.development)
  • Keeping a message-id during routing for an SMTP sink
    ... As a development environment I had set up an exchange server with an ... SMTP outbound event sink. ...
    (microsoft.public.exchange.development)
  • Re: Event Sink to copy messages
    ... Check sender/receiver instead of ... > Can anyone advise on a way to create an event sink for an Exchange 2003 ... > specific domain come into the exchange organization a specific user will ... > address is Tom@xxxxxxxxxxx Once that email comes into the exchange server ...
    (microsoft.public.exchange.development)
  • Re: Exchange server 2000
    ... With VBScript you can not do direct socket programming, ... Register an onsyncsave event ... You told "After you created the event sink code, ...
    (microsoft.public.exchange2000.development)