Re: Reflection and DirectoryInfo.Delete error
- From: "Ollie Riches" <ollie_riches@xxxxxxxxxxx>
- Date: Mon, 29 Jan 2007 10:13:04 -0000
If you are using System.Reflection.Assembly.ReflectionOnlyLoadFile to list
the contents of directory where an assembly is loaded for your application
then you are going to have to unload the assembly loaded from that directory
before attempting to delete the directory. If this is the case then why
would you want to delete the directory.
HTH
Ollie Riches
"goHawkeyes" <linda@xxxxxxxxxxxx> wrote in message
news:1169851300.065267.40710@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
After using System.Reflection.Assembly.ReflectionOnlyLoadFile to look
through a directory and inspect versions of files and such I use a
DirectoryInfo.Delete(True) object to delete the directory but it gives
me an unauthorized error. If I do everything the same way but do not
inspect the directory contents with reflection I can delete the
directory. I have tried setting my assembly variable to nothing as
well as force garbage collection yet nothing seems to fix the problem.
Is there a bug here or am I missing something?
Thanks,
AJL
.
- Follow-Ups:
- Re: Reflection and DirectoryInfo.Delete error
- From: goHawkeyes
- Re: Reflection and DirectoryInfo.Delete error
- References:
- Reflection and DirectoryInfo.Delete error
- From: goHawkeyes
- Reflection and DirectoryInfo.Delete error
- Prev by Date: Re: Invalid parameter used
- Next by Date: Firing hotkey
- Previous by thread: Reflection and DirectoryInfo.Delete error
- Next by thread: Re: Reflection and DirectoryInfo.Delete error
- Index(es):
Relevant Pages
|