Event ID 2511 Is Logged After You Delete a Shared Directory

ID: Q124170


The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.5, 3.51, 4.0
  • Microsoft Windows NT Server versions 3.5, 3.51, 4.0
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server


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, stop sharing the deleted directory in File Manager.

  1. Run File Manager


  2. From the Disk menu, choose Stop Sharing.


  3. Select the directory that has been deleted and choose OK.


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 HKEY_LOCAL_MACHINE subtree, go to the following key:
    \SYSTEM\CurrentControlSet\Services\LanmanServer\Shares


  3. Select the Share that no longer exists.


  4. From the Edit menu, choose Delete.


  5. Quit Registry Editor.


  6. Shut down and restart Windows NT.


Additional query words: prodnt system log

Keywords : kbenv ntconfig NTSrvWkst
Version : WINDOWS:2000; winnt:3.5,3.51,4.0
Platform : WINDOWS winnt
Issue type :


Last Reviewed: January 21, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.