On a machine where Dynamics NAV 2009 is installed, i want to check if internet connectivity is there or not.
If connectivity is there, system should execute further code else show error and exit.
I searched the forum and found the below code
httpreq is an automation with 'Microsoft WinHTTP Services, version 5.1'.WinHttpRequest
//-------- if no connenction the system stops here because unable to send.
Now the issue is if connectivity is not there system gives an error as
"The call to member send failed. WinHttp.WinHttpRequest Returned error message".
System does not process any further code but I want to handle this exception through C/AL and give the
customized error message.
If anyone can help on this.