2
Answers

Getting UnAuthorizedAccessException while deleting a temp dll

Ramana

Ramana

13y
1.7k
1
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)