Re: Deleting a file
From: Ignacio Machin \( .NET/ C# MVP \) ("Ignacio)
Date: 03/04/04
- Next message: Chad Z. Hower aka Kudzu: "Re: Need help with ftp commands???"
- Previous message: Sky: "Re: __LINE__ and __PATH__ function."
- In reply to: Sid Sidney: "Deleting a file"
- Next in thread: Sami Vaaraniemi: "Re: Deleting a file"
- Messages sorted by: [ date ] [ thread ]
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. > >
- Next message: Chad Z. Hower aka Kudzu: "Re: Need help with ftp commands???"
- Previous message: Sky: "Re: __LINE__ and __PATH__ function."
- In reply to: Sid Sidney: "Deleting a file"
- Next in thread: Sami Vaaraniemi: "Re: Deleting a file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|