Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / April 2004

Tip: Looking for answers? Try searching our database.

Event Sink tutorial - Error Updating Props using EventReg

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Notlwonk - 16 Apr 2004 19:51 GMT
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/CsManagedEventSinksHooks.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!
Notlwonk - 24 Apr 2004 00:56 GMT
I got the Event Sink working with C# and Exchange Server 2000

The tutorial at this link

http://www.codeproject.com/csharp/CsManagedEventSinksHooks.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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.