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
I am running Net use * /delete /y also but still I am getting this error whenever I use a different user than previous user
background:- Actually I am trying to excute a command in remote computer and read the command output from a text file. for that I am using wsnet connection by establishing a connection and through unc path \\10.210.1.1\C$:\output.txt , I am reading the output back. and then disconnecting the connection ... even if the connection is not properly closed, I am making sure to execute Net use * /delete /y command in my local system to delete all the existing connection on , but even after doing this if I use a different user I get this exception while connecting using WSNET in C#
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