In a web application at run-time, i load an external assembly (*.dll file) and run some part of it's code and then i want to unload and delete the file!
this is my load code:
var assembly = Assembly.Load(AssemblyName.GetAssemblyName(@"..\..\anexternallibrary.dll"));
How can i unload it and release the file? the deleting file also could not be done an throws file access denied exception.
How to force to delete it without killing the related process?