G
Guest
I get the exception System.UnauthorizedAccessException: Access to the path "c:\Some.dll" is denied. when trying to delete a file
I am loading the dll with Assembly.Load(...) then using Invoke to call some code in one of the public static methods of a type
After this I need to delete the file but get the exception.
How can I release the hold on the file so I can delete it
Thank you
I am loading the dll with Assembly.Load(...) then using Invoke to call some code in one of the public static methods of a type
After this I need to delete the file but get the exception.
How can I release the hold on the file so I can delete it
Thank you