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

Rene Balvert 1 Reputation point
2021-03-02T08:30:50.52+00:00

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

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
581 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,534 questions
{count} votes