DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 2 Aug 2007 15:06:04 -0700,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    Ramon N. Gene am


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:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us