Event ID 2511 Is Logged After You Delete a Shared Directory (124170)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0
  • Microsoft Windows NT Server 3.5
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0

This article was previously published under Q124170

SYMPTOMS

If you delete a directory before removing the share that points to the directory, the following message appears in the Event Viewer:
Event ID: 2511 Source: Server Type: Error
Description: The server service was unable to recreate the share <sharename> because the directory <drive>:\<directory> no longer exists.

RESOLUTION

To avoid receiving this event message in Windows NT 4, stop sharing the deleted directory in File Manager. To rectify, follow these steps:
  1. Run File Manager.
  2. From the Disk menu, select Stop Sharing.
  3. Select the directory that has been deleted and click OK.

To avoid receiving this event message in Windows 2000, stop sharing the deleted directory in the Computer Mangement Snapin:
  1. Open the Computer Management Snapin from Administrator Tools.
  2. Select Shares under System Tools, Shared Folders.
  3. Select the share to remove and select Stop Sharing.
An alternative is to modify the registry as follows:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.
  1. Run Registry Editor (Regedt32.exe).
  2. From the View menu, select the Tree and Data option.
  3. Navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
  4. Select the Share that no longer exists.
  5. From the Edit menu, click Delete.
  6. Quit Registry Editor.
  7. Shutdown and restart Windows NT.

Modification Type:MajorLast Reviewed:5/6/2003
Keywords:kbenv KB124170