This could happen when you use VMware Server with SMB storage or otherwise. The error message is pretty self explanatory but here is how it can happen with VMware Server.
Consider that VMware Server is installed on a machine which mounts SMB storage location with an administrator account. Windows doesnt allow two sessions access the shared storage from the same machine. So if you are logged in VMware Server machine and is viewing the files of the shared folder(which is mounted on it), it means that you are causing issues for the other connection(maybe a program that uses it). So as indicated by the message, you need to kill all the sessions and allow restart the program.
1) Look at the sessions that are simultaneously running. On a Windows machine, Run -> ‘net use’. This will list all the connections.
2) Delete all the connections to the storage. Better still, do a ‘net use * /delete’
3) Ensure that you dont access the shared drive when the program is running.(to avoid starting a new connection)
It should work now.
4 thoughts on “Exception: 1219 WNetAddConnection2 Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.”
Hey, nice tips. I’ll buy a bottle of beer to that man from that chat who told me to go to your blog 🙂
After an hour of googling around I found your advice that solved my problem… 3 years later I want to thank you for this hint. 🙂
Ok one more point here Also if you have the same path open in windows explorer it will not show up in net use. That was my problem. Brain fart but might help someone anyone. The solution is to merely close that instance of explorer and the drive will map.
Thanks for sharing Mark. I guess your point will be useful for someone.