title: Access to file is denied exception with asp.net impersonation
body: <p>I am trying to access the files  with following c# code, but when i try to execute the code i am encountered with exception saying access to path @"\MAHESH-PC\D$\temp\CloudURL.txt is denied .</p>
  
  <p><img src="https://i.stack.imgur.com/rkUpr.jpg" alt="enter image description here"></p>
  
  <p>Impersonation imp = new Impersonation("MAHESH-PC", "mahesh", "welcome");
          File.Copy(@"\MAHESH-PC\D$\temp\CloudURL.txt", @"C:\temp\CloudURL.txt", true);</p>
  
  <p>I have given all the access rights to both the temp folders one in the c: drive and other in the d: drive</p>
  
  <p><img src="https://i.stack.imgur.com/eNqoU.jpg" alt="enter image description here"></p>
  
  <p>I have enabled the Impersonation in the IIS , even then i am getting access denied exception , please can i know is their any other settings i should implement to make this working.</p>
  
  <p><img src="https://i.stack.imgur.com/7pwAq.jpg" alt="enter image description here"></p>