CDONTS error 80070003 "Path not found error"

Veralteter Haftungsausschluss für KB-Inhalte

Dieser Artikel wurde für Produkte geschrieben, für die Microsoft keinen Support mehr anbietet. Deshalb wird dieser Artikel im vorliegenden Zustand bereitgestellt und nicht mehr aktualisiert.


When using a CDONTS application, the following error might appear on the Send method of the CDONTS.Newmail object:

80070003 "Path not found error"


This error can happen if the SMTP pickup directory path in the Internet Information Server (IIS) Metabase might be incorrectly pointing to an invalid directory.


Use the ADSUTIL utility that is installed with the IIS server to manually modify the "SMTP working directory" entries in the Metabase. The ADSUTIL is usually installed in the following directory:

The following steps demonstrate how to discard the properties of the SMTP service:

  1. Open a command prompt window on the IIS server.
  2. Find the directory that the Adsutil.vbs file is in and switch to that directory.
  3. Type the following command at the prompt:
    ADSUTIL enum SMTPsvc/1

    This will display all of the settings for the default SMTP Service.
  4. Find the setting "PickupDirectory"
The following steps demonstrate how to set up the "PickupDirectory" setting in the Metabase:

  1. Find the correct SMTP pickup directory that either IIS SMTP service or Exchange IMS is using.
  2. Type the following command at the prompt:
    ADSUTIL set SMTPsvc/1/PickupDirectory (Path to the Pickup directory from step 1)

    Select Enter. You should receive the following message:
    PickupDirectory        : (STRING) "Path to the correct directory"
The directory should now be set properly. You may also want to change the other directory locations for the SMTP service to point to the proper directory location.

More Information

This setting is the location that CDONTS is going to put the .eml files that are created when a CDONTS application runs.


For more information, click the following article number to view the article in the Microsoft Knowledge Base:

235681 Path not found when using CDONTS with IMC


Artikelnummer: 238956 – Letzte Überarbeitung: 19.06.2014 – Revision: 1