Hi,
I deployed an application in 'A' server IIS. & I am trying to delete a file using application in the 'B' server.
But it's not deleting a file in 'B' server ..
lblCheckThis.Text = Session("AttachfilePath").ToString() If Session("AttachfilePath") IsNot Nothing And Session("AttachfilePath") <> "" Then If System.IO.File.Exists(Session("AttachfilePath")) And System.IO.Path.GetFullPath(Session("AttachfilePath")).ToString().Contains("HoldingBay") Then lblCheckThis.Text = "Came inside" System.IO.File.Delete(Session("AttachfilePath")) Session("AttachfilePath") = Nothing Else lblCheckThis.Text = "Not Came inside" End If End If
From localhost , system able to delete a file , but after I added in to IIS in 'A' server then it's not deleting in 'B' Server
I checked the path of a file like 'F:\HoldingBay\ITContract\Reddy\3)Emails Filed under Tasks Category.txt' , it's going inside IF condition from localhost and able to delete a file in 'B' server.
But It's not going to inside IF condition from 'A' server.
Please help me on this.. Thanks in advance..