folder deleting not working
Posted
by
user1150440
on Stack Overflow
See other posts from Stack Overflow
or by user1150440
Published on 2012-04-05T23:24:55Z
Indexed on
2012/04/05
23:29 UTC
Read the original article
Hit count: 132
If System.IO.Directory.Exists(HttpContext.Current.Server.MapPath(Server.MapPath("images/TravelogueGallery/" & getMaxID()))) Then
System.IO.Directory.Delete(HttpContext.Current.Server.MapPath("images/TravelogueGallery/" & getMaxID()), True)
End If
I am using the above code snippet to delete a directory but i get this error "'G:\Projects\Latest\LTCIndia 05-04-12 1415\images\TravelogueGallery\19' is not a valid virtual path. "
Whats wrong with the code?
© Stack Overflow or respective owner