Microsoft KB Archive/238956

= CDONTS error 80070003 "Path not found error" =

Article ID: 238956

Article Last Modified on 7/19/2005

-

APPLIES TO


 * Microsoft Collaboration Data Objects 1.2 for NT Server

-



This article was previously published under Q238956



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

80070003 "Path not found error"



CAUSE
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.



RESOLUTION
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:   System32\Inetsrv\iisadminsamples 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.
 * 1) Find the setting "PickupDirectory"

The following steps demonstrate how to set up the "PickupDirectory" setting in the Metabase:  Find the correct SMTP pickup directory that either IIS SMTP service or Exchange IMS is using. 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.

