That took 36 seconds to open over my 19.2KBps dial-up.

-----Original Message-----
From: Pankaj Goyal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 12:30 PM
To: Exchange Discussions
Subject: Exchange Event Registration Error (Urgent)


Hi,
I am facing problem during Exchange Event (Sync/Async) Registration using
Domain Administrator a/c with all possible permission. This server machine
is also a domain controller.
 
I am using Exchange 2000, Exchange SDK 6.5, Windows 2000 Server.
 
COM+ package gets created successfully.
But when I try to register event using "Exchange Explorer" or regevent.vbs
(Microsoft Exchange Event Registration sample script) then I get error.
 
What permissions are necessary to create the event registration?
Most of the literature, including the books, assume that one has full
control over everything. That is not necessarily the case. As an Exchange
Application Developer, I might not be an Enterprise Administrator and a Full
Exchange Administrator, or even a server local administrator.
What are the minimum requirements???
 
 
I have one more exchange server also with Exchange 2000, Exchange SDK 6.5,
Windows 2000 Server. but event registration works fine on that server. 
 
1)      When I try to register event using "Exchange Explorer", I get
following error:
 
"An error has occurred creating the registration item. Event sinks must be
registered as a COM+ Application prior to creating the registration event
item or there maybe issues connecting to the network or the server. Also
check the data for accuracy. ....."
 

 
2) When I try to register event using regevent.vbs (MS sample registration
script), 
I used regevent.vbs script with following parameters.
 
C:\Program Files\Exchange SDK\SDK\Support\OLEDB\Scripts>Regevent add
onsyncsave SampleEvtSinkVB.SyncEvents
http://qa-exchange/exchange/administrator/contacts/OnSyncSaveEvent
 
OR
 
C:\Program Files\Exchange SDK\SDK\Support\OLEDB\Scripts>Regevent add
onsyncsave SampleEvtSinkVB.SyncEvents
file://./backofficestorage/QA/MBX/Administrator/Contacts/OnSyncSaveEvent
 
I get following error:
 
Error Commiting Transaction : -2141913011
 
Above error appears in following code segment of regevent.vbs
cn.CommitTrans 
If Err.Number <> 0 Then
      WScript.Echo "Error Commiting Transaction : " & Err.Number & " " &
Err.Description & vbCrLf
     Exit Sub
End If
 
 
Using "Exchange Explorer" I saw that Event Registration entry does get
created. Although this entry has incorrect value for "DAV:contentclass"
property.
 
 
3) I tried to debug the regevent.vbs code and  I commented out transaction
related following code lines from script file.
cn.BeginTrans
cn.CommitTrans 
 
Then I tried to register event with modified code of regevent.vbs, script
failed in following code while updating 
"DAV:contentclass" property.
 
aPropValues(ndxContentClass) = "urn:content-class:storeeventreg"
.Update 
If Err.Number <> 0 Then
    WScript.Echo "Error Updating Props : " & Err.Number & " " &
Err.Description & vbCrLf
    Exit Sub
End If
 
Now Update method fails and following is error message"-
 
Error Updating Props : 505 Invalid or unqualified reference
 
Using "Exchange Explorer" I saw that Event Registration gets created, but
while updating "DAV:contentclass" property, script is failing.
 
I doubt whether it is a permission related error, because event registration
entry gets created and using "Exchange Explorer", I am able to modify
"DAV:contentclass" property of created event registration  to some random
junk value  BUT when I try to set "DAV:contentclass" property's  value to
"urn:content-class:storeeventreg" (the one which it should have) then I get
following 2 errors:-
 
You can not perform action on currently selected item.
 
Unable to put this property. Verify that all fields are correct. If that
does not work  then verify that you have proper permissions to modify this
property.
 
I have spent lots of time on this problem. Please let me know why this
problem might be happening.
 
Thanks so much in advance.
 
Pankaj Goyal
 
e-mail [EMAIL PROTECTED]
 
 
 
 
 
_________________________________________________________________ 
List posting FAQ: http://www.swinc.com/resource/exch_faq.htm 
Archives: http://www.swynk.com/sitesearch/search.asp 
To unsubscribe: mailto:[EMAIL PROTECTED] 
Exchange List admin: [EMAIL PROTECTED]
_________________________________________________________________ 
List posting FAQ: http://www.swinc.com/resource/exch_faq.htm 
Archives: http://www.swynk.com/sitesearch/search.asp 
To unsubscribe: mailto:[EMAIL PROTECTED] 
Exchange List admin: [EMAIL PROTECTED] 

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to