EventHubClient.Send from WinForm app throws exception "An error occurred during communication with 'N/A'. Check the connection information, then retry. "

Hi,
I am trying to send a mesasge from a WinForm app (.net 4.7.2) but it throws an exception after 10-20 seconds:
"An error occurred during communication with 'N/A'. Check the connection information, then retry."
When I change the endpoint to i.e. "Endpoint=sb://xxxinvalidxxx.servicebus.windows.net***" I get the same error immediately.
I have tested the application from a network without FW restrictions, but it failed.
Sending a message with "Test send" from Azure portal works successfully.
So is it possible to send a message from WinForm anyway, or must it be a UWP application?
Regards,
Rene