D
Do
Hi,
I'm getting the following error messages "The process cannot access the
file "c:\inetpub\wwwroot\nspi1.5\files\DSCF0009.jpg" because it is being
used by another process."
This happens when I call the following code. Am I forgetting the clean up
something?
If objFile.Exists(Current.Server.MapPath("../files/" & filename)) Then
'Delete the physical file
objFile.Delete(Current.Server.MapPath("../files/" & filename))
Return True
Else
Current.Session.Contents("error") = "Physical file does not exist."
Return False
End If
I'm getting the following error messages "The process cannot access the
file "c:\inetpub\wwwroot\nspi1.5\files\DSCF0009.jpg" because it is being
used by another process."
This happens when I call the following code. Am I forgetting the clean up
something?
If objFile.Exists(Current.Server.MapPath("../files/" & filename)) Then
'Delete the physical file
objFile.Delete(Current.Server.MapPath("../files/" & filename))
Return True
Else
Current.Session.Contents("error") = "Physical file does not exist."
Return False
End If