Re: Deleting a file

From: Ignacio Machin \( .NET/ C# MVP \) ("Ignacio)
Date: 03/04/04


Date: Thu, 4 Mar 2004 08:57:01 -0500

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" <anonymous@discussions.microsoft.com> wrote in message
news:9B6B0D71-CB4C-475E-BDDE-055B962AA858@microsoft.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.
>
>


Relevant Pages

  • Re: WTF patents
    ... IIRC, allegedly perpetual motion machines are an exception to that ...
    (sci.electronics.design)
  • Re: Compound expression and order of evaluation
    ... proper short-circuiting. ... With, iirc, the exception of the ** exponentiation operator new in 8.5 ... that is the _only_ exception. ...
    (comp.lang.tcl)
  • Re: OT: Room for improvement?
    ... IIRC the decision not to run was made ... It is the exception rather than the rule for a VP not to seek the top ... tons of negative political baggage. ...
    (rec.sport.tennis)
  • Re: duplicate code
    ... bool rethrow = ExceptionPolicy.HandleException(ex, "Log Only ... Policy"); if ... wenn eine Exception gefangen wird (was in der Methode nicht der ... IIRC wird der Kompiler hier auch einen Fehler. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: How to determine if an instance of your program is already running?
    ... You can have your program create a known directory (which IIRC an ... atomic operation). ... be an exception. ... HTH. ...
    (comp.lang.python)