Ramana

Ramana

  • NA
  • 25
  • 59.3k

Getting UnAuthorizedAccessException while deleting a temp dll

May 23 2011 11:31 PM
Hi,
   I'm creating a dll at run time and after using that dll finally I'm trying to delete that dll at run time but I'm getting UnAuthorizedAccessException .
 File.Delete(location).

   But once after the application is closed and if I try to delete that file while the application is loaded then that dll is getting deleted at run time only.

Can anyone please tell the solution.

Regards,
Ramana

Answers (2)