Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Error while connecting to net connection in remote windows

Error while connecting to net connection in remote windows

Scheduled Pinned Locked Moved C#
csharpsysadminhelplearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    superselector
    wrote on last edited by
    #1

    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

    OriginalGriffO 1 Reply Last reply
    0
    • S superselector

      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

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Please don't post the same thing in multiple places: it duplicates work and annoys people. You have this in QA, leave it there.

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups