Added SMTP Service Fails after IIS 4.0 Is Installed on Non-Default Path
ID: Q245208
|
The information in this article applies to:
-
Microsoft Internet Information Server version 4.0
IMPORTANT: This article contains information about editing the registry.
Before you edit the registry, make sure you understand how to restore it if
a problem occurs. For information about how to do this, view the "Restoring
the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help
topic in Regedt32.exe.
SYMPTOMS
When you add the Microsoft SMTP service through Add/Remove Programs after you install the Windows NT Option Pack (NTOP), the SMTP service may not work
immediately, if the initial NTOP installation was on a non-default path. The following
error message may occur in the event log:
Event ID 7000 Source: Service Control manager.
"Microsoft SMTP service. Service failed to start due to the following error: the system cannot find the file specified
CAUSE
Although the NTOP was installed to a customer selected non-default path, the SMTP service is
still installed to the default location for Inetinfo (Winnt\System32\Inetsrv), which causes the problems to occur. For example, if IIS is installed in Inetsrv directory
instead of the Winnt\System32\Ineterv directory , Add/Remove Programs still attempts to
put the SMTP service in to the Winnt\System32\Inetsrv directory instead of the current
location of Inetinfo.exe.
WORKAROUND
WARNING: Using Registry Editor incorrectly can cause serious problems that
may require you to reinstall your operating system. Microsoft cannot
guarantee that problems resulting from the incorrect use of Registry Editor
can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys and
Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete
Information in the Registry" and "Edit Registry Data" Help topics in
Regedt32.exe. Note that you should back up the registry before you edit it.
If you are running Windows NT, you should also update your Emergency
Repair Disk (ERD).
- Verify which folder is the current working directory for IIS by searching for
Inetinfo.exe (for example: d:\inetsrv).
- Copy the following SMTP related DLLs from the Winnt\System32\Inetsrv directory to the
location where Inetinfo.exe is currently located:
Jpudll.dll
Mboxapi.dll
Seo.dll
Seos.dll
Smtpadm.dll
Smtpkey.dll
Smtpread.txt
Smtpsnap.dll
Smtpsvc.dll
- Run Regedit.
Note: Before you modify the registry, export the current registry first as a backup.
Search for the following DLLs in the registry:
Seo.dll
Seos.dll
Smtpadm.dll
Smtpsnap.dll
Smtpsvc.dll
-
Change the default path to the current working directory for IIS (to
d:\Inetsrv).
- In the registry, change the Inetinfo.exe image path to map to the current
working directory:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMTPSVC]
ImagePath=Changed Image Path to point to the real path for Inetinfo.exe
\PARAMETERS
InstallPath=Changed Image Path to point to the real path for Inetinfo.exe
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMTPSVC\Enum]
0="Root\\LEGACY_SMTPSVC\\0000"
Count=dword:00000001
NextInstance=dword:00000001
- Try to start the SMTP service in the Control Panel, or
restart the computer.
Additional query words:
IIS NTOP SMTP
Keywords :
Version : winnt:4.0
Platform : winnt
Issue type : kbprb