System.Io.Directory.Delete

M

mr t

sometime when debuging my VS.NET 2005 app, when I call
System.IO.Directory.Delete does not work, but never throws an
exception. but when I try access that directory by going to windows
explorer, it gives me Access Exception, permissions denied.

it's when I close the VS.NET when the directory is actually deleted.
anyone knows why this would behave this way?

BTW, when I use FileSystemObject delete method, it works perfectly,
but I want to use .NET for all my sites projects.

thanks.
 
P

Peter Bucher [MVP]

Hello mr t (Please use your real name here)
sometime when debuging my VS.NET 2005 app, when I call
System.IO.Directory.Delete does not work, but never throws an
exception. but when I try access that directory by going to windows
explorer, it gives me Access Exception, permissions denied.
Same Behavior in Release Mode?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top