C# Exchange Event Sink ISmtpInCommandSink

Posted on 2005-03-16
Medium Priority
Last Modified: 2012-06-27
Hi again.  I am trying to make a CatchAll event sink for the SMTP ISmtpInCommandSink interface based on the instructions here:


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
Question by:KaiserSose
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 18

Expert Comment

ID: 13560912
try to run tlbexp from visual studio command prompt and make sure that all reference assembly in the same folder.

Accepted Solution

Razzie_ earned 2000 total points
ID: 13563321
Kaiser, I asked the EXACT same question once:


I never got it to really work, but I just installed it with the /codebase parameter. Though it is recommended not to do it, I have never experienced problems and AFAIK, the chances you actually will get in trouble are very small if you use a not so common namespace, read more about this with this question I asked once:




Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question