I am facing an error when establishing the SSL connection. I am using the FullyQualifiedNamespace and EventHubName as the parameters of the EventHubBufferedProducerClient constructor.
{"ActivityId":"2e64b28d-88fc-4ab8-8846-533d6c93b096","AccountId":"","ContextId":"00000000-0000-0000-0000-000000000000","PayLoadId":null,"Message":"System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.\r\n at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)\r\n at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)\r\n at System.Net.Security.SslStream.ProcessAuthenticationWithTelemetryAsync(Boolean isAsync, CancellationToken cancellationToken)\r\n at System.Threading.Tasks.TaskToAsyncResult.End(IAsyncResult asyncResult)\r\n at Microsoft.Azure.Amqp.Transport.TlsTransport.HandleOpenComplete(IAsyncResult result, Boolean syncComplete)\r\n--- End of stack trace from previous location ---\r\n at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception)\r\n at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result)\r\n at Microsoft.Azure.Amqp.AmqpObject.OpenAsyncResult.End(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.AmqpObject.EndOpen(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.TlsTransportInitiator.HandleTransportOpened(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.TlsTransportInitiator.OnTransportOpened(IAsyncResult result)\r\n--- End of stack trace from previous location ---\r\n at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception)\r\n at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.AmqpTransportInitiator.ConnectAsyncResult.End(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.AmqpTransportInitiator.<>c.b__17_1(IAsyncResult r)\r\n at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)\r\n--- End of stack trace from previous location ---\r\n at Azure.Messaging.EventHubs.Amqp.AmqpConnectionScope.CreateAndOpenConnectionAsync(Version amqpVersion, Uri serviceEndpoint, Uri connectionEndpoint, EventHubsTransportType transportType, IWebProxy proxy, Int32 sendBufferSizeBytes, Int32 receiveBufferSizeBytes, RemoteCertificateValidationCallback certificateValidationCallback, String scopeIdentifier, TimeSpan timeout)\r\n at Microsoft.Azure.Amqp.FaultTolerantAmqpObject1.OnCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Amqp.AmqpConnectionScope.OpenManagementLinkAsync(TimeSpan operationTimeout, TimeSpan linkTimeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.FaultTolerantAmqpObject1.OnCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Amqp.AmqpClient.GetPropertiesAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Amqp.AmqpClient.GetPropertiesAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.EventHubConnection.GetPropertiesAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.EventHubConnection.GetPartitionIdsAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubProducerClient.GetPartitionIdsAsync(CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.UpdatePartitionInformation(CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.StartPublishingAsync(CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.E--TRUNCATED--",
I am facing an error when establishing the SSL connection. I am using the FullyQualifiedNamespace and EventHubName as the parameters of the EventHubBufferedProducerClient constructor.
{"ActivityId":"2e64b28d-88fc-4ab8-8846-533d6c93b096","AccountId":"","ContextId":"00000000-0000-0000-0000-000000000000","PayLoadId":null,"Message":"System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.\r\n at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)\r\n at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)\r\n at System.Net.Security.SslStream.ProcessAuthenticationWithTelemetryAsync(Boolean isAsync, CancellationToken cancellationToken)\r\n at System.Threading.Tasks.TaskToAsyncResult.End(IAsyncResult asyncResult)\r\n at Microsoft.Azure.Amqp.Transport.TlsTransport.HandleOpenComplete(IAsyncResult result, Boolean syncComplete)\r\n--- End of stack trace from previous location ---\r\n at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception)\r\n at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result)\r\n at Microsoft.Azure.Amqp.AmqpObject.OpenAsyncResult.End(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.AmqpObject.EndOpen(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.TlsTransportInitiator.HandleTransportOpened(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.TlsTransportInitiator.OnTransportOpened(IAsyncResult result)\r\n--- End of stack trace from previous location ---\r\n at Microsoft.Azure.Amqp.ExceptionDispatcher.Throw(Exception exception)\r\n at Microsoft.Azure.Amqp.AsyncResult.End[TAsyncResult](IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.AmqpTransportInitiator.ConnectAsyncResult.End(IAsyncResult result)\r\n at Microsoft.Azure.Amqp.Transport.AmqpTransportInitiator.<>c.b__17_1(IAsyncResult r)\r\n at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func
2 endFunction, Action1 endAction, Task
1 promise, Boolean requiresSynchronization)\r\n--- End of stack trace from previous location ---\r\n at Azure.Messaging.EventHubs.Amqp.AmqpConnectionScope.CreateAndOpenConnectionAsync(Version amqpVersion, Uri serviceEndpoint, Uri connectionEndpoint, EventHubsTransportType transportType, IWebProxy proxy, Int32 sendBufferSizeBytes, Int32 receiveBufferSizeBytes, RemoteCertificateValidationCallback certificateValidationCallback, String scopeIdentifier, TimeSpan timeout)\r\n at Microsoft.Azure.Amqp.FaultTolerantAmqpObject1.OnCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton
1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Amqp.AmqpConnectionScope.OpenManagementLinkAsync(TimeSpan operationTimeout, TimeSpan linkTimeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.FaultTolerantAmqpObject
1.OnCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Microsoft.Azure.Amqp.Singleton
1.GetOrCreateAsync(TimeSpan timeout, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Amqp.AmqpClient.GetPropertiesAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Amqp.AmqpClient.GetPropertiesAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.EventHubConnection.GetPropertiesAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.EventHubConnection.GetPartitionIdsAsync(EventHubsRetryPolicy retryPolicy, CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubProducerClient.GetPartitionIdsAsync(CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.UpdatePartitionInformation(CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.StartPublishingAsync(CancellationToken cancellationToken)\r\n at Azure.Messaging.EventHubs.Producer.EventHubBufferedProducerClient.E--TRUNCATED--",