Microsoft KB Archive/286336

= PRB: Error -2147217895 When Using Regevent.vbs on Exchange 2000 =

Article ID: 286336

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Exchange 2000 Server Standard Edition

-



This article was previously published under Q286336



SYMPTOMS
When registering an Exchange 2000 store event sink using Regevent.vbs or ActiveX Data Objects (ADO) with a file URL (for example, file://./backofficestorage/corp.microsoft.com/mbx/user/Inbox/regitem), you may receive the following error message:

Error Opening Connection : -2147217895 Object or data matching the name, range, or selection criteria was not found within the scope of this operation.

This message usually indicates that the URL you are using is invalid. In this case, however, you have verified that the URL is correct by using Windows Explorer on drive M. In other words, the path M:\corp.microsoft.com\MBX\user\ is valid. Also, using the HTTP URL to the same folder works correctly.



CAUSE
This problem can be caused by having the Exchange server in a subdomain, such as corp.microsoft.com, but having the e-mail address as user@microsoft.com. Because the &quot;e-mail domain name&quot; is microsoft.com (not corp.microsoft.com), the EXOLEDB provider recognizes the domain as microsoft.com.



RESOLUTION
Replace the domain name in your file URL with the &quot;e-mail domain name.&quot; In the example above, you would change the URL to file://./backofficestorage/microsoft.com/mbx/user/Inbox/regitem.



STATUS
This behavior is by design.



MORE INFORMATION
When you use a file URL in ADO, the EXOLEDB provider is used by default; this is because the EXOLEDB provider is bound to the file URL scheme.

Steps to Reproduce Behavior

 * 1) Create a store event sink.
 * 2) On an Exchange server in a subdomain named differently than the &quot;email domain name,&quot; attempt to register the event sink using Regevent.vbs. Be sure to use the subdomain name in the file URL; for example:

cscript regevent.vbs add onsyncsave MyEventSink.SynchEvents &quot;file//./backofficestorage/corp.microsoft.com/MBX/user/Inbox/SyncRegItem&quot;

Additional query words: -2147217895 exch2kp2w

Keywords: kberrmsg kbmsg kbprb KB286336

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.