My question is about impersonation using C#.
My system uses one account to transfer the files from user's system to a network location. This network location can be only accessed by one particular account let say AccountX. Now user comes in the system, and performs other operations
under his account. But when he wants to save a file or retrieve a file from network location, system employees impersonation to use the privileges of “AccountX” to copy or retrieve the file.
Then system gets back using the user account.
Now the Current Code was working fine for Windows Xp and Windows Vista, but when I try to use the same code at Windows seven. As soon as system try to impersonate the “AccountX”.
It encounters the error that says
“The referenced account is currently locked out and may not be logged on to”.