G
goHawkeyes
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
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