473,387 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Event Sink tutorial not quite working

Not sure where to post this Q

I am trying to write a Managed Exchange Server Event Sink (as a class library) in C#

I have been following this tutorial step-by-step

http://www.codeproject.com/csharp/Cs...tSinksHooks.as

So far so good....except when it comes down to binding the component to the folder on the Exchange Store. When I do...I get the following error

Microsoft (R) Windows Script Host Version 5.
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved

New Event Binding created
Event: onsave;ondelet
Sink: MyEventSink.ExchEventSin
FullBindingUrl: file://./backofficestorage/buyersfund.com/mbx/tom/FaxFailure/re
Event.em

Error Updating Props : -2147221163 Interface not registere

Press any key to continue . .

any help would be great

Nov 16 '05 #1
1 2844
I got the Event Sink working with C# and Exchange Server 2000

The tutorial at this link

http://www.codeproject.com/csharp/Cs...tSinksHooks.as

is very very good......................but it does have some flaws

1) You do NOT need to run RegEvent.vbs AT ALL......ignore this suggestion in the tutorial. Instead, download and install the SDK Tools and run Exchange Explorer instead to register the Event and hook it into the EventSink code

2) I recommend using regsvcs /appname:YourAppName <full path to your DLL including extension> from the command line, instead of using the Component Services GUI to register the COM DLL. I have to do some further testing to see if the GUI works...but I know for sure the command line route using REGSVCS works well

3) After you have registered the COM DLL (your event sink) in Component Services......then go and register the Exchange Store Event using Exchange Explorer. THEN go back to Component Services....right-click on your App Name and click on START. This is what actually starts the EventSink (your C# DLL) talking to the Exchange Store. Until you do this nothing will happen. This was left out of the tutorial. A small thing, but an important thing to mention.
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: BlueMonkMN | last post by:
I've been trying to think of the right way to design relationships between objects with different desired lifetimes that raise events. If an event source is a relatively permanent object and the...
0
by: Razzie | last post by:
Hey all, I'm... pretty stuck. I've created a ISmtpInCommand sink following this tutorial: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/writingmngsinks.asp ...
0
by: Arnaud Debaene | last post by:
Hello all. I've got a bunch of existing, non managed, C++ DLLs that export types with, among other things, public events implemented using the boost::signals library. Now, I need to have...
0
by: techie | last post by:
I have created an event sink in my ATL COM project. The event sink receives events from a C# component. There is no problem with receving events but when my COM object is released I get an access...
6
by: Charles Law | last post by:
I have a class, which implements an interface. Let's say, that the interface looks something like Public Interface IEventSinks Sub ValueChanged(sender As Object, e As ValueChangedEventArgs) Sub...
7
by: Don | last post by:
Getting errors after following the MSDN article on using VB.NET (and VS2005) for "Implementing a Managed OnSave Event Sink" for Exchange Server 2007. Not sure, but part of the problem may be that...
9
by: Eric Kaplan | last post by:
I have a function that will download XML from internet and load XML data into database. The function will take 5 - 20 minutes to finish. I heard I should use event sink (event listener) when...
1
by: mooni | last post by:
Hi all, I am trying to create a class that will act as event sink to a COM object. Just to tell you the COM object is SoftUSBEndpoint which is part of Device Simulation Framework. Anyways its...
5
by: =?Utf-8?B?Q29kZVJhem9y?= | last post by:
I have an event sink which does some work to the software we use, according to the data contained within an email. This is all working hunky dory. What i want to know is whether it is possible to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.