Hi Sid,
IIRC that is not the exception it's rise when you try to delete an open
file, it said something about the file is in use by other process.
I think that your problem is other, maybe you do not have permission to
delete the file , or maybe you are running your application from a network
path.
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Sid Sidney" <an*******@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
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.