Earlier, We were using a website in IIS to move a file to a different machine. Now we wanted to free this task from the UI thread, so we moved the movement logic to a background windows service. But now the network impersonation is failing with below error:
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
The credentials are stored at a central location, so they are the same for both the IIS process and the background service. The movement is working fine for internal environments. But when it is deployed to some external environments, it fails.
What can be done here?