PRB: Error -2147217895 When Using Regevent.vbs on Exchange 2000 (286336)



The information in this article applies to:

  • Microsoft Exchange 2000 Server

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 "e-mail domain name" 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 "e-mail domain name." 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 "email domain name," 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 "file//./backofficestorage/corp.microsoft.com/MBX/user/Inbox/SyncRegItem"

Modification Type:MinorLast Reviewed:3/4/2004
Keywords:kberrmsg kbMsg kbprb KB286336