I am having a problem where I am trying to delete my file but I get an exception.
if (result == \"Success\") { if (FileUpload.HasFile) { t
I was facing this error because
Sometimes when I Combine the path with File Name and FileName = ""
Combine
FileName = ""
It become Path Directory not a file which is a problem as mentioned above
Path Directory
file
so you must check for FileName like this
FileName
if(itemUri!="") File.Delete(Path.Combine(RemoteDirectoryPath, itemUri));