Link to home
Start Free TrialLog in
Avatar of KaiserSose
KaiserSose

asked on

C# Exchange Event Sink ISmtpInCommandSink

Hi again.  I am trying to make a CatchAll event sink for the SMTP ISmtpInCommandSink interface based on the instructions here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp

One problem is that Microsoft.Exchange.Transport.EventWrappers.dll isn't strongly named so my project won't compile.  I created a class library and set up the strong naming myself and then used my output as a reference in the main project and that let everything compile ok.

Now nothing works when I try to register the COM+ application.  First I got the error that the class wasn't derived from ServicedComponent, no problem right.  Now I'm getting this error:

TlbExp warning: Referenced type is defined in managed component, which is imported from a type library that could not be loaded because it was not registered (type: Microsoft.Exchange.Transport.EventInterop.ISmtpInCommandSink; component: c:\exchangesinks\catcharchive\microsoft.exchange.transport.eventinterop.dll).

I used regasm.exe on all of the necessary dll's and still nothing.
What am I missing?

I may even be open to paying for some consulting work at this point.
Thanks Dave
Avatar of testn
testn

try to run tlbexp from visual studio command prompt and make sure that all reference assembly in the same folder.
ASKER CERTIFIED SOLUTION
Avatar of Razzie_
Razzie_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial