Ping Reply - No such host is known

Hello everyone,

I am using Ping.Send on my workflow but I am getting this error:

System.Net.NetworkInformation.PingException: An exception occurred during a Ping request. —> System.Net.Sockets.SocketException: No such host is known
at System.Net.Dns.GetAddrInfo(String name)

I am not familiar with network. I tried to ping the ip on cmd but it works fine. So I am thinking to just handle or catch this error. Is there any way I can do that?

yes, use a try catch activity.

1 Like

Hey @wonderingnoname

You can use my attached sample from an existing old Thread.

Regards…!!
Aksh

Hi@aksh1yadav,
The is error ‘Type Ping is not define’

can you help
Thanks

Hey @Aman_Mongar

it is in existing thread onyl -

Regards…!!
Aksh

Hey @aksh1yadav i tried that but still I am getting error.

Hey @Aman_Mongar

Will you share your xaml? so i will have a quick look :slight_smile:

Regards…!!
AKsh