Re: create folder in public folders using Exchange SDK and C#



Hello,

you must run the regevent.vbs script directly on the Exchange server, because it uses the ExOLEDB provider, which can only be used locally.

As for the installation of the COM+ component, don't use regasm. Use regsvcs.exe instead. This will create the COM+ application automatically. See http://www.infinitec.de/articles/exchange/managedeventsinks.aspx.

Best regards,
Henning Krause

"Parv" <Parveen.Beniwal.Daffodil@xxxxxxxxx> wrote in message news:1152169820.757739.97330@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi henning
i am executing the script on my development PC. I want that while
installing setUp of my program to register this eventsink on the target
server. is it possible ? if yes then how ? and if not then what is
other option for me ?
for the second one what shd be the exact procdure ?
i have created a registery key using

regasm MyEventSink.dll /regfile:MyEventSink.reg

copied this on the target server and then start the com
application. But my event is still not firing. What may be the reason
or what i am doing wrong.

Henning Krause wrote:
Hello,

are you running the registration script directly on the Exchange Server?

Is you eventsink property registered as a COM+ application?

Best regards,
Henning Krause

"Parv" <Parveen.Beniwal.Daffodil@xxxxxxxxx> wrote in message
news:1152161981.845045.327230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello
>
> I have written a class implementing the IExStoreAsyncEvents but
> while regstering it using the
>
> cscript RegEvent.vbs add "onsave;ondelete" MyEventSink.ExchEventSink
> file://./backofficestorage/server.Homevines.com/mbx/parveen.beniwal -p
> 100 -m deep
>
> i am getting following error
>
> Error Opening Connection : 3706 Provider cannot be found. It may not be
> properly installed.
>
> Please help me its urgent.
>
> Regards
> Parveen Beniwal
>
> Henning Krause wrote:
>> Hello,
>>
>> you can use a global eventsink (OnSyncSave / OnSyncDelete). This way, >> you
>> would get your notifications on a store-wide base. If you are only
>> interested in modifications on a one-level base, you can use normal >> event
>> sinks. See http://msdn.microsoft.com/exchange for more information.
>>
>> Best regards,
>> Henning Krause
>>
>> "Parv" <Parveen.Beniwal.Daffodil@xxxxxxxxx> wrote in message
>> news:1151986098.377153.179780@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> > hi
>> >
>> > yes, You are right i want me to intimate whenever any mail or
>> > folder is deleted or inserted in the public mail folders.
>> >
>> > Regards
>> > Parveen Beniwal
>> >
>> > Henning Krause wrote:
>> >> Hello,
>> >>
>> >> I don't know if I understand you correctly. Do you (or a program
>> >> respectively) want to get notified if someone creates or deletes a
>> >> folder
>> >> on
>> >> your server?
>> >>
>> >> Best regards,
>> >> Henning Krause
>> >>
>> >>
>> >> "Parv" <Parveen.Beniwal.Daffodil@xxxxxxxxx> wrote in message
>> >> news:1151929923.022609.318550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> >> > Hello Henning
>> >> >
>> >> > One more favour..... Can you guide me how to add listener >> >> > to
>> >> > intimate me on adding or deleting any mail from a exchange store
>> >> > folder
>> >> > ?
>> >> >
>> >> > Regards
>> >> > Parveen Beniwal
>> >> >
>> >> >
>> >> > Henning Krause wrote:
>> >> >> Hello Parv,
>> >> >>
>> >> >> a collision error could indicate that there already exists a >> >> >> folder
>> >> >> with
>> >> >> the
>> >> >> new name of the folder.
>> >> >>
>> >> >> Best regards,
>> >> >> Henning Krause
>> >> >>
>> >> >> "Parv" <Parveen.Beniwal.Daffodil@xxxxxxxxx> wrote in message
>> >> >> news:1151920216.044015.227800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> >> >> >i am trying to rename folder Test by the following
>> >> >> > Folder oFD = (Folder)oFolders.get_Item("Test");
>> >> >> > oFD.Name = "newName";
>> >> >> >
>> >> >> > but i am getting following exception while doing so
>> >> >> >
>> >> >> > System.Runtime.InteropServices.COMException (0x80040604):
>> >> >> > [Collaboration Data Objects - [MAPI_E_COLLISION(80040604)]]
>> >> >> > at System.RuntimeType.ForwardCallToInvokeMember(String
>> >> >> > memberName,
>> >> >> > BindingFlags flags, Object target, Int32[] aWrapperTypes,
>> >> >> > MessageData&
>> >> >> > msgData)
>> >> >> > at Interop.cdo.Folder.set_Name(Object )
>> >> >> > at MyEventSink.GetPublicFolders.Main(String[] args)
>> >> >> >
>> >> >> > What is wrong here ?
>> >> >> >
>> >> >> > Regards
>> >> >> > Parveev Beniwal
>> >> >> >
>> >> >> > Parv wrote:
>> >> >> >> Hi Henning
>> >> >> >>
>> >> >> >> Is there any way to rename a folder in your assembly.
>> >> >> >>
>> >> >> >> Regards
>> >> >> >> Parveev Beniwal
>> >> >> >
>> >> >
>> >
>


.



Relevant Pages

  • Re: Updating CDO.DLL on BlackBerry Server
    ... Can't you copy the CDO.DLL file from the Exchange server? ... Copy it to the BES ... > error that it wasn't a valid Exchange installation. ... > manually copy and register the CDO.DLL from the package to ...
    (microsoft.public.exchange.admin)
  • Help building MST file with Outlook 2003 and Windows XP
    ... users Outlook profile to connect to our Exchange server using the ... The problem is the Exchange profile never does get ... I have created an administrative installation ... 18 Configure and Exchange Server Connection is selected ...
    (microsoft.public.outlook.installation)
  • Re: The virtual memory necessary to run your Exchange server is fr
    ... Which Exchange server and service pack do you have installed? ... Regards, ... > that you restart all Exchange services to correct this issue. ... > Per Christian ...
    (microsoft.public.exchange2000.information.store)
  • Installing Exchange Server 2003 Ent version
    ... I need to install exchange Server 2003 Ent version in Windows Server 2003 Ent ... come to a window showing the installation part where it have a drop-down Box ...
    (microsoft.public.exchange.setup)
  • Re: Dual Domain Controllers
    ... Best regards ... This posting is provided "AS IS" with no warranties, and confers no rights. ... the exchange server is still a member of the ...
    (microsoft.public.win2000.active_directory)

Loading