What does Windows error code 85 (ERROR_ALREADY_ASSIGNED) mean?

 
Could be also:
ConstantTypeOS
ERESTARTerrnoLinux
EBADEXECerrnoMac
ELIBSCNerrnoSolaris
DATA_COHERENCY_EXCEPTIONBugCheck CodeWindows
Previous Next
ERROR_REDIR_PAUSED ERROR_INVALID_PASSWORD

ERROR_ALREADY_ASSIGNED

WNetAddConnection2 returns this code when lpLocalName names a local device that already has a network connection. A drive letter such as F: is a local redirection slot; the error says that slot is occupied, not that the requested remote share is inaccessible.

Query the existing association before deleting it. The current mapping may be intentional, and forced replacement can break another application. Also distinguish an active mapping from a remembered mapping in the user profile, which can produce ERROR_DEVICE_ALREADY_REMEMBERED instead.

Resolve the local-name collision

  • Retrieve the remote resource currently associated with the local device.
  • Compare that target with the new lpRemoteName requested by the application.
  • Choose another local device name or explicitly disconnect the old mapping when replacement is intended.
  • Check persistent profile state separately if the visible connection is absent after logon.

WNetAddConnection2 · WNetGetResourceInformation · Samba standalone server and guest shares


Looking for a different code? Search another status or error code.