Not able to delete files

Discussion in 'ASP.NET / ASP.NET Core' started by dcaver, Jan 17, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Has anyone run into an issue where you can't delete files through the System.IO? I'm not getting any errors, the files just aren't deleting. I have even displayed my file path to make sure it is correct and it is. I'm able to upload a file to the same directory but it just can'tdelete from there.


    Imports System.IO



    Dim DeleteFullPath As String = DirPath & OriginalImage.Trim
    File.Delete(DeleteFullPath)
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Nope never heard of this before!!

    FSO always give error when there's a problem with the operation.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page