Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
[no name] 16-Sep-14 7:42am    
You have already asked this. There is no need to cross post.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900