Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 6 Nov 2007 15:35:01 -0800,    group: microsoft.public.exchange.development        back       


OnSink Event   
I have successfuly registered my Com+ event and then tried to run 

cscript regevent.vbs add "onsave" ExOleDB.ScriptEventSink.1 "file://./backof
ficestorage/[domain]/MBX/[user]/inbox/[sub folder]/" -m deep -file 
"c:\OnSaveEventSync.vbs"

but after a moment I get the following

Error Opening Record : -2147217768 Object cannot be created at this URL 
because
an object named by this URL already exists.

I have rights to the mailbox in question and this directory is existing?  
What am I doing wrong?
date: Tue, 6 Nov 2007 15:35:01 -0800   author:   James Robertson

Re: OnSink Event   
Hi James,

you'll have to add the name of the sink to the path:

cscript regevent.vbs add "onsave" ExOleDB.ScriptEventSink.1 
"file://./backofficestorage/[domain]/MBX/[user]/inbox/[sub 
folder]/myeventsink.evt" -m deep -file "c:\OnSaveEventSync.vbs"

Kind regards,
Henning


"James Robertson"  wrote in 
message news:99D0C98F-DD4E-4102-BC60-038180A616B7@microsoft.com...
>I have successfuly registered my Com+ event and then tried to run
>
> cscript regevent.vbs add "onsave" ExOleDB.ScriptEventSink.1 
> "file://./backof
> ficestorage/[domain]/MBX/[user]/inbox/[sub folder]/" -m deep -file
> "c:\OnSaveEventSync.vbs"
>
> but after a moment I get the following
>
> Error Opening Record : -2147217768 Object cannot be created at this URL
> because
> an object named by this URL already exists.
>
> I have rights to the mailbox in question and this directory is existing?
> What am I doing wrong?
date: Wed, 7 Nov 2007 13:33:06 +0100   author:   Henning Krause [MVP - Exchange]

Re: OnSink Event   
Boy do I feel silly.  Oh well that is what I get for not reading between the 
lines.  Anyways I have another question I created this and it is supposed to 
save the attachment to a specific folder but it isnt.  Also I cannot tell if 
it is even working.  First how can I tell if it is working or not?  Second 
can you look at the script I am using and let me know if I have something 
wrong?

<SCRIPT LANGUAGE="VBScript">

savepath = "c:\temp\"
Set msgobj = CreateObject("CDO.Message")
msgobj.DataSource.Open bstrURLItem
For Each objAttachment In msgobj.Attachments
    savefile = savepath
    savefile = savefile & objAttachment.filename
    objAttachment.SaveToFile savefile
next
set msgobj = nothing 

</SCRIPT>


"Henning Krause [MVP - Exchange]" wrote:

> Hi James,
> 
> you'll have to add the name of the sink to the path:
> 
> cscript regevent.vbs add "onsave" ExOleDB.ScriptEventSink.1 
> "file://./backofficestorage/[domain]/MBX/[user]/inbox/[sub 
> folder]/myeventsink.evt" -m deep -file "c:\OnSaveEventSync.vbs"
> 
> Kind regards,
> Henning
> 
> 
> "James Robertson"  wrote in 
> message news:99D0C98F-DD4E-4102-BC60-038180A616B7@microsoft.com...
> >I have successfuly registered my Com+ event and then tried to run
> >
> > cscript regevent.vbs add "onsave" ExOleDB.ScriptEventSink.1 
> > "file://./backof
> > ficestorage/[domain]/MBX/[user]/inbox/[sub folder]/" -m deep -file
> > "c:\OnSaveEventSync.vbs"
> >
> > but after a moment I get the following
> >
> > Error Opening Record : -2147217768 Object cannot be created at this URL
> > because
> > an object named by this URL already exists.
> >
> > I have rights to the mailbox in question and this directory is existing?
> > What am I doing wrong? 
> 
>
date: Wed, 7 Nov 2007 08:29:02 -0800   author:   James Robertson

Re: OnSink Event   
Hi James,

which user have you selected for the COM+ application you created in the 
Component services MMC? That user must have read access to c:\ and 
read/write access to c:\temp in your case.

You can use FileMon from Microsoft (formerly SysInternals) to check if the 
sink tries to write to the disk.

Kind regards,
Henning



"James Robertson"  wrote in 
message news:FCC02BCA-DE1F-40EF-96DE-98D9050D15DA@microsoft.com...
> Boy do I feel silly.  Oh well that is what I get for not reading between 
> the
> lines.  Anyways I have another question I created this and it is supposed 
> to
> save the attachment to a specific folder but it isnt.  Also I cannot tell 
> if
> it is even working.  First how can I tell if it is working or not?  Second
> can you look at the script I am using and let me know if I have something
> wrong?
>
> <SCRIPT LANGUAGE="VBScript">
>
> savepath = "c:\temp\"
> Set msgobj = CreateObject("CDO.Message")
> msgobj.DataSource.Open bstrURLItem
> For Each objAttachment In msgobj.Attachments
>    savefile = savepath
>    savefile = savefile & objAttachment.filename
>    objAttachment.SaveToFile savefile
> next
> set msgobj = nothing
>
> </SCRIPT>
>
>
> "Henning Krause [MVP - Exchange]" wrote:
>
>> Hi James,
>>
>> you'll have to add the name of the sink to the path:
>>
>> cscript regevent.vbs add "onsave" ExOleDB.ScriptEventSink.1
>> "file://./backofficestorage/[domain]/MBX/[user]/inbox/[sub
>> folder]/myeventsink.evt" -m deep -file "c:\OnSaveEventSync.vbs"
>>
>> Kind regards,
>> Henning
>>
>>
>> "James Robertson"  wrote in
>> message news:99D0C98F-DD4E-4102-BC60-038180A616B7@microsoft.com...
>> >I have successfuly registered my Com+ event and then tried to run
>> >
>> > cscript regevent.vbs add "onsave" ExOleDB.ScriptEventSink.1
>> > "file://./backof
>> > ficestorage/[domain]/MBX/[user]/inbox/[sub folder]/" -m deep -file
>> > "c:\OnSaveEventSync.vbs"
>> >
>> > but after a moment I get the following
>> >
>> > Error Opening Record : -2147217768 Object cannot be created at this URL
>> > because
>> > an object named by this URL already exists.
>> >
>> > I have rights to the mailbox in question and this directory is 
>> > existing?
>> > What am I doing wrong?
>>
>>
date: Wed, 7 Nov 2007 22:59:55 +0100   author:   Henning Krause [MVP - Exchange]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us