Hi,
I did try your code with one more line inside the Try block (though it worked for me without that change).
VB Code:
Public Function IsFileAvailable(ByVal FileLink As String) As Boolean Dim objUrl As New System.Uri(FileLink) Dim objWebReq As System.Net.WebRequest Dim objResp As System.Net.WebResponse Try objWebReq = System.Net.WebRequest.Create(objUrl) objResp = objWebReq.GetResponse objResp.Close() objWebReq = Nothing Return True Catch ex As Exception objWebReq = Nothing Return False End Try End Function
Debugged via IDE and didn't find any problem.![]()




Reply With Quote