Unregistering and deleting COM interop assembly
Hello:
I am using the Publish class (from System.EnterpriseServices.Internal)
in my application to unregister a COM interop assembly. After calling
UnRegisterAssembly to unregister the dll, I am trying to delete it, but I am
getting UnauthorizedAccessException. I have verified that the call to
UnRegisterAssembly is preventing the subsequent deletion of the dll.
This is the code that I am using:
Publish p = new Publish();
p.UnRegisterAssembly(“mydll.dll");
File.Delete("mydll.dll ");
Why can’t I delete the file after the call to UnRegisterAssembly? Any ideas,
suggestions?
Thanks in advance,
Ramon
Date:Thu, 2 Aug 2007 15:06:04 -0700
Author:
|