Getting UnAuthorizedAccessException while deleting a temp dll
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