Hi - I am trying to make my Web Service exit gracefully in the event of a problem. On it's way out, I use FileClose() to close any files that might or might not be open. But instead of returning the error message errm, I just get the "Page Cannot Be Displayed" page. I put all the "logits" in to pin it down, and found the prog got only as far as "Here 6". I tried enclosing the FileClose() in a Try...Catch (as below), but the same thing happened, and in the log "Here 7" was not reached.
Any ideas please
Thanks,
..... errm = GetFOInfo(AvailCode)
logit("Here 4")
If Left(errm, 5) = "Error" Then GoTo End1
logit("Here 5")
....and, further down.....
End1: logit("Here 6")
Try
FileClose()
Catch ex As Exception
logit("Here 7 " + ex.ToString())
End Try
logit("Here 8")
logit(errm)
logit("Here 9")
logit("Returning >" + errm + "<")
Return errm
End Function

Fileclose() crashes the Web Service?
Darren5559
Sorry.