Getting Access to path denied error after impersonationg a user

  • Thread starter Thread starter SinghSalil11
  • Start date Start date
S

SinghSalil11

Guest
Hi Team,

I have a requirement in which I have to impersonate users based on their usernames, as I need to copy files from different folders on which these users are having permission, I am using a .net console application for this.

I am impersonating using WindowsIdentity, object of this windows identity I am making by giving email address of the user.

After impersonating I am getting Access to the path is denied error.

I am having an account using which with no impersonation I am able to successfully copy files from a folder (on a network) but when I impersonate same account and try to copy file, it gives access denied error.


Can you please help me resolve this.


Thanks,

Salil

Continue reading...
 
Back
Top