Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

This article was previously published under Q286336

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


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"

↑ Back to the top


Keywords: KB286336, kbprb, kbmsg, kberrmsg

↑ Back to the top

Article Info
Article ID : 286336
Revision : 5
Created on : 2/22/2007
Published on : 2/22/2007
Exists online : False
Views : 260