M_ssl.AuthenticateAsServer An established connection was aborted by the software in your host machine

m_ssl.AuthenticateAsServer(m_X509Certificate,
false,
SslProtocols.Tls12,
false);
Using Network 4.5.1 on Windows Server 2012 R2     (Virtual machine)  and C#
The server receive connections from external devices, more than 1200 simultaneously.
After the connection has been received, the TLS1.2  encryption is used.
This works fine most of time, except (over weekends), it seems , when the external connection 3G is dropped and many of the external devices. Then about 200-500 of the external devices fails to connect while the remaining 600 stays connected.
needs to connect again. The error I get during Authentication  is:  An established connection was aborted by the software in your host machine.
Each ssl stream is dispose of when closed.    
This is the only exception of with inner exceptions I get. No events are logged in the event log.
How can I trace what s the reason why the host machine aborted the connection?
On Hyper V, this is set

Hello Commstech,
>>How can I trace what s the reason why the host machine aborted the connection?
If this exception occurs in the “AuthenticateAsServer” method, since the .NET team opens the source, you could check this blog:
http://blogs.msdn.com/b/dotnet/archive/2014/02/24/a-new-look-for-net-reference-source.aspx to step into the source code to check what the exact caused reason is. Or according to the source code, to create a custom library which provides the communition
function, in that custom library, adding the log trace logic so that if there is exception occurring, you just need to check the log.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • An established connection was aborted by the software in your host machine

    I have found this example in your library about "Asynchronous Client Socket"
    and when i try to add 
    Send(client,"This is another test message<EOF>");
    sendDone.WaitOne();
    Receive(client);receiveDone.WaitOne();in StartClient() method as shown belowIt throws an error "An established connection was aborted by the software in your host machine"How can i solve this errorusing System;using System.Net;
    using System.Net.Sockets;
    using System.Threading;
    using System.Text;
    // State object for receiving data from remote device.publicclass StateObject {
    // Client socket.public Socket workSocket = null;
    // Size of receive buffer.publicconstint BufferSize = 256;
    // Receive buffer.publicbyte[] buffer = newbyte[BufferSize];
    // Received data string.public StringBuilder sb = new StringBuilder();
    publicclass AsynchronousClient {
    // The port number for the remote device.privateconstint port = 11000;
    // ManualResetEvent instances signal completion.privatestatic ManualResetEvent connectDone =
    new ManualResetEvent(false);
    privatestatic ManualResetEvent sendDone =
    new ManualResetEvent(false);
    privatestatic ManualResetEvent receiveDone =
    new ManualResetEvent(false);
    // The response from the remote device.privatestatic String response = String.Empty;
    privatestaticvoid StartClient() {
    // Connect to a remote device.try {
    // Establish the remote endpoint for the socket.// The name of the // remote device is "host.contoso.com".
    IPHostEntry ipHostInfo = Dns.Resolve("host.contoso.com");
    IPAddress ipAddress = ipHostInfo.AddressList[0];
    IPEndPoint remoteEP = new IPEndPoint(ipAddress, port);
    // Create a TCP/IP socket.
    Socket client = new Socket(AddressFamily.InterNetwork,
    SocketType.Stream, ProtocolType.Tcp);
    // Connect to the remote endpoint.
    client.BeginConnect( remoteEP,
    new AsyncCallback(ConnectCallback), client);
    connectDone.WaitOne();
    // Send test data to the remote device.
    Send(client,"This is a test<EOF>");
    sendDone.WaitOne();
    // Receive the response from the remote device.
    Receive(client);
    receiveDone.WaitOne();
    Send(client,"This is another test message<EOF>");
    sendDone.WaitOne(); Receive(client);
    receiveDone.WaitOne(); // Write the response to the console.
    Console.WriteLine("Response received : {0}", response);
    // Release the socket.
    client.Shutdown(SocketShutdown.Both);
    client.Close();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid ConnectCallback(IAsyncResult ar) {
    try {
    // Retrieve the socket from the state object.
    Socket client = (Socket) ar.AsyncState;
    // Complete the connection.
    client.EndConnect(ar);
    Console.WriteLine("Socket connected to {0}",
    client.RemoteEndPoint.ToString());
    // Signal that the connection has been made.
    connectDone.Set();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid Receive(Socket client) {
    try {
    // Create the state object.
    StateObject state = new StateObject();
    state.workSocket = client;
    // Begin receiving the data from the remote device.
    client.BeginReceive( state.buffer, 0, StateObject.BufferSize, 0,
    new AsyncCallback(ReceiveCallback), state);
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid ReceiveCallback( IAsyncResult ar ) {
    try {
    // Retrieve the state object and the client socket // from the asynchronous state object.
    StateObject state = (StateObject) ar.AsyncState;
    Socket client = state.workSocket;
    // Read data from the remote device.int bytesRead = client.EndReceive(ar);
    if (bytesRead > 0) {
    // There might be more data, so store the data received so far.
    state.sb.Append(Encoding.ASCII.GetString(state.buffer,0,bytesRead));
    // Get the rest of the data.
    client.BeginReceive(state.buffer,0,StateObject.BufferSize,0,
    new AsyncCallback(ReceiveCallback), state);
    } else {
    // All the data has arrived; put it in response.if (state.sb.Length > 1) {
    response = state.sb.ToString();
    // Signal that all bytes have been received.
    receiveDone.Set();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    privatestaticvoid Send(Socket client, String data) {
    // Convert the string data to byte data using ASCII encoding.byte[] byteData = Encoding.ASCII.GetBytes(data);
    // Begin sending the data to the remote device.
    client.BeginSend(byteData, 0, byteData.Length, 0,
    new AsyncCallback(SendCallback), client);
    privatestaticvoid SendCallback(IAsyncResult ar) {
    try {
    // Retrieve the socket from the state object.
    Socket client = (Socket) ar.AsyncState;
    // Complete sending the data to the remote device.int bytesSent = client.EndSend(ar);
    Console.WriteLine("Sent {0} bytes to server.", bytesSent);
    // Signal that all bytes have been sent.
    sendDone.Set();
    } catch (Exception e) {
    Console.WriteLine(e.ToString());
    publicstaticint Main(String[] args) {
    StartClient();
    return 0;

    Hi Jack,
    I have test the code,both
    Asynchronous Client Socket Example and
    Asynchronous Server Socket Example works fine on my side.
    Server Screenshot                                                    Client
    Screenshot
    >>An established connection was aborted by the software in your host machine
    From the error message,
    Firstly please try to check if there is a firewall between the sender and receiver, make sure that it does not closing the connection because of idle timeout, or just turn off the firewall for testing.
    Also someone try to reset to solve the issue.
    <Copied>
    The issue here was the timeout on the central distributor. That was causing the connection to reset when the receiver did not
    pick up the message within the time limit.  Alter the reset, when this program tried to receive on the socket it would fail with "An established connection was aborted by the software in your host machine" and this generated the failure audits. 
    </Copied>
    In addtion, there is a thread talking about the similar thread, please have a look.
    C# An established connection was aborted by the software in your host machine
    Best of luck!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • A connection was abortively closed after one of the peers sent an rst packet

    Hello,
    i have a dvr on netwoek that is wok fine. i tried to publish it over internet.
    i have tmg with two wan connections(load Balancing) and two internal networks.
    i create a server application rule and and but dvr protcols on it.
    when i try to open it from outside it's not working. on tmg log it's give me this error:
     A connection was closed because no SYN/ACK reply was received from the server.
    also with others dvr i get this error:
    a connection was abortively closed after one of the peers sent an rst packet
    i tired to read all post on forums but i didn't get a solution for it.
    please not that the network rule from internal to external is route and the publish rule is set to make the request is from local host.
    so whats the problem?
    thanks.

    Hi,
    Thank you for your post here.
    As far as i know, if you would like to publish server located in internal, you need to set the relationship between internal and external as NAT.
    Best Regards
    Quan Gu

  • SQL Service Broker 2012: the connection was closed by the remote end, or an error occurred while receiving data: '64(The specified network name is no longer available.)'

    Anyone can help with the below issue please? Much appreciated.
    We have about 2k+ messages in sys.transmission_queue
    Telnet to the ports 4022 is working fine.
    Network connectivity has been ruled out.
    The firewalls are OFF.
    We also explicitly provided the permissions to the service account on Server A and Server B to the Service broker end points.
    GRANT
    CONNECT ON
    ENDPOINT <broker> <domain\serviceaccount>
    Currently for troubleshooting purposes, the DR node is also out of the Availability Group, which means that we right now have only one replica the server is now a traditional cluster.
    Important thing to note is when a SQL Server service is restarted, all the messages in the sys.transmission queue is cleared immediately. After about 30-40 minutes, the errors are continued to be seen with the below
    The
    connection was
    closed by the
    remote end,
    or an
    error occurred while
    receiving data:
    '64(The specified network name is no longer available.)'

    We were able to narrow down the issue to an irrelevant IP coming into play during the data transfer. We tried ssbdiagnose runtime and found this error:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Windows\system32>SSBDIAGNOSE -E RUNTIME -ID 54F03D35-1A94-48D2-8144-5A9D24B24520 Connect to -S <SourceServer> -d <SourceDB> Connect To -S <DestinationServer> -d <DestinationDB>
    Microsoft SQL Server 11.0.2100.60
    Service Broker Diagnostic Utility
    An internal exception occurred: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    P  29830                                 Could not find the connection to the SQL Server that
    corresponds to the routing address tcp://XX.XXX.XXX.199:4022. Ensure the tool is connected to this server to allow investigation of runtime events
    The IP that corresponds to routing address is no where configured within the SSB. We are yet unsure why this IP is being referred despite not being configured anywhere. We identified that this IP belongs to one of nodes other SQL Server cluster, which has
    no direct relation to the source server. We failed over that irrelevant SQL Server cluster and made another node active and to our surprise, the data from sys.transmission_queue started flowing. Even today we are able to reproduce the issue, if we bring
    back this node [XX.XXX.XXX.199] as active. Since, its a high business activity period, we are not investigating further until we get an approved downtime to find the root cause of it.
    When we get a approved downtime, we will bring the node [XX.XXX.XXX.199] as active and we will be running Network Monitor, Process Monitor and the SSB Diagnose all in parallel to capture the process/program that is accessing the irrelevant IP.
    Once, we are able to nail down the root cause, I will share more information.

  • I am having trouble transferring files from an old MacBook (2007) to a MacBook Air over a wireless network.  The connection was interrupted and the time was over 24 hours.  Is there a better way to do this?  I'm using Migration assistant.

    I am having trouble transferring files from an old MacBook (2007) to a MacBook Air over a wireless network.  The connection was interrupted and the time was over 24 hours.  Is there a better way to do this?  I'm using Migration assistant.  The lack of an ethernet port on MacBook air does not help.

    William ..
    Alternative data transfer methods suggested here > OS X: How to migrate data from another Mac using Mavericks

  • Opening attachments gives the error : "The connection was reset. The connection to the server was reset

    Opening attachments gives the error : "The connection was reset. The connection to the server was reset. I tried clearing cookies and cache, but it doesnot work. 8 out of 10 times this is happenning. It's reproducible, and happening only after the latest update.

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    You can also try to reset (power off/on) the router.

  • I am playing in Pogo and cannot open the games even though the homepage and others will open. The message is THE CONNECTION WAS RESET WHILE THE PAGE WAS LOADING. How do I fix this???

    I am playing in Pogo and cannot open the games even though the homepage and others will open. The message is THE CONNECTION WAS RESET WHILE THE PAGE WAS LOADING.
    All my friends are playing and it seems I am the only one have this problem.

    The "The connection was reset" error message can be caused by a bug fix for the BEAST (Browser Exploit Against SSL/TLS) attack that the server doesn't handle.
    *[[/questions/918127]]
    *[[/questions/918028]]

  • Infinite loop - A stale JDBC connection was detected in the connection pool

    Hello.
    I have a simple JSP (no servlets) application with a single Fastlane Reader style view object to back it up. I'm deploying my application under OC4J 10g 9.0.4 using BC4J 9.0.3.11.50 (JDev 9.0.3.3) on RHEL 3.0, j2sdk1.4.2_03.
    I run with -Djbo.debugoutput=console
    Every so often, intermittently, and totally unpredictably, I see this on stdout for OC4J:
    03/12/23 07:42:07 [33326] A stale JDBC connection was detected in the connection pool
    03/12/23 07:42:07 [33327] Creating a new pool resource
    03/12/23 07:42:07 [33328] Trying connection/2: url='jdbc:oracle:thin:@somedb:1521:somedbsid' info='{user=someuser, password=somepass, dll=ocijdbc9, protocol=thin}' ...
    This message occurs over and over ultimately resulting in hundreds upon thousands of failed connections to the database. I have to forcibly restart OC4J to stop it.
    The weird thing about it is that it seems to only start doing this on one system (which is our internal deployment site); it works fine under an OC4J running in IDE or on a preproduction machine.
    Has anyone experienced this before - or at the very least, can clue me in on getting BC4J to be a little more verbose on the connection failure?
    Thanks and Happy Holidays,
    Sean

    Hi did you find an answer?
    if so, could you post it here?
    thanks

  • The connection was denied because the user account is not authorized for remote login

    Using Terminal Server 2008 not able to get non administrator users to login to the remote desktop. Have tried from Windows server 2008 and from Windows servers 2003. Get error login in "The connection was denied because the user account is not authorized for remote login" from Windows Server 2008. Error "The requested session access is denied" from Windows Server 2000.

    Is that seriously the only way to do this? Doesn't this render the "Allow log on through Terminal Services" GP Setting useless?
    I would like to know this answer, as well.  I have created a new AD group for my assistant admins called "Domain Admins (limited)".  I have added this group to the GP setting "Allow log on through Terminal Services", but the
    assistant admins cannot log in through RDP.  It 'feels like' this is all I would need to do.
    Craig
    Found some good info
    here. There are really two things required for a user to connect to a server via RDP. You can configure one of them via Group Policy but not the other.
    1) Allow log on through Terminal Services can be configured through Group Policy, no problem.
    2) Permissions on the RDP-listener must also be granted.  If your user is a member of the local Administrators group or the local Remote Desktop Users group then this is handled.  If you are trying to utilize a new, custom group (as I am),
    then there isn't a way to do this via group policy (that I have found).
    EDIT: Found the answer.  I am creating a blog post to outline the steps.  They aren't hard, but they're not self-explanatory.  It deals with the Restricted Groups mentioned above, but it's still automate-able using Group Policy so that you
    don't have to touch each computer.  I think the above poster (Andrey Ganev) got it right, but
    I had trouble deciphering his instructions.
    Here is my blog post that walks through this entire process, step-by-step.

  • On opening I get message "The connection was reset. The connection to the server was reset while the page was loading" ??

    On startup of Mozilla I recieve a message saying "The connection was reset ".
    The connection to the server was reset while the page was loading.
    Try again? After hitting the try again button it works.
    == This happened ==
    Every time Firefox opened
    == After loading Firefox

    I can connect http://www.bbc.co.uk/ & you may be interested in http://www.bbc.co.uk/iplayer/diagnostics
    Is your problem with streaming audio broadcasts to and are you outside the UK ?
    If so you may have fallen prey to the BBC's Content Distribution Network which often seems to produce problems they keep re-issuing advice such as:
    *''Why am I having problems listening to BBC radio outside the UK, such as experiencing poor sound quality or the station is not working?25 May 2011 20:28'' [http://iplayerhelp.external.bbc.co.uk/help/outside_the_uk/radio_problems_international/ <-- this ]

  • WSUS sync fails with "Webexception the underlying connection was closed. The connection was closed unexpectedly"

    While I have my WSUS integrated with SCCM. I think this error has nothing to do with SCCM, so I put it here in the WSUS forum. On one of my networks, the nightly WSUS sync worked until two weeks ago. I've made no progress in fixing it. Ocassionally it'll
    say the sync was successful (about 1 in 15 attempts). I keep getting "WebException: The underlying connection was closed. The connection was closed unexpectedly. at System.WebServices.Protocols.WebClientProtocol.GetWebResponse(WebRequest
    request) at System.WebServices.Protocols.GetWebResponse(WebRequest request) at MicroSoft.UpdateServices.ServerSync.ServerSyncCompressionProxy.GetWebResponse(WebRequest webrequest) at System.Web.Services.Protocols.SoapHttpClientProtocol.(Invoke StringMethodName,Object[]
    Parameters) at Microsoft.UpdateServices.ServerSync.ServerSyncWebServices.ServerSync.ServerSyncProxy.GetRevisionIdList(Cookie cookie, ServerSyncFilter filter) at Microsoft.Update.Services.ServerSync.CatalogSyncAgentCore.WebserviceGetRevisionIdList(ServerSyncFilter
    filter, Boolean isConfigData), at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.SyncConfigUpdatesfromUSS() at Microsoft.UpdateServices.ServerSync.CatalogSyncAgentCore.ExecuteSyncProtocol(Boolean allowRedirect)"
    Our enterprise has it's own WSUS server we have to sync from. The problem may be at that end, not mine. A sync will start and will fail about 4 minutes later. Our network guy watched the traffic leave our compound but saw only a trickle of traffic coming
    back. Any ideas?
    Ben JohnsonWY

    Hi,
    Please try this fix below first:
    FIX: Intermittent "Underlying connection was closed" error message when you call a Web service from ASP.NET
    http://support.microsoft.com/kb/819450
    I guess you are maintaining a downstream server. If it isn’t a replica server, please try to sync with Microsoft update.
    Hope this helps.

  • HT1725 When I'm downloading iOS for my iPhone just for a minute my internet connection was gone and the whole download was deleted and when I resumed it started from the beginning?

    When I'm downloading iOS for my iPhone just for a minute my internet connection was gone and the whole download was deleted and when I resumed it started from the beginning?

    Delete and re-download the Dropbox app. You will have to sign in again and adjust app settings.

  • Deployment connection was released before the state of deployment was known

    Hi Friends,
    I am facing deployment error on Weblogic 9.2. When I am publishing my ear after building it is giving error -->
    Deployment connection was released before the state of deployment was known.[Deployer:149034]An exception occurred for task [Deployer:149026]deploy application ear on AdminServer.: .
    Please find the error stack trace below:
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
         at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper$DeploymentProgressListener.watch(WlsJ2EEDeploymentHelper.java:1558)
         at oracle.eclipse.tools.weblogic.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:470)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1338)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishToServer(WeblogicServerBehaviour.java:795)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:615)
         at oracle.eclipse.tools.weblogic.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:508)
         at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:707)
         at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2492)
         at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:270)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    This same ear is working on my team member's machine. I have compared weblogic.xml and .settings files with her files and there is not any difference. I am not able to resolve this error.
    Please help me to resolve this error.
    Regards,
    Raj

    Hello.
    Is there something in WL server log?
    Regards.

  • The network connection was closed by the peer.

    hi. I don't understand the words mean
    the words is "The network connection was closed by the peer "     it is error 66
    thanks

    Many thanks for your reply . I want to send an emal with an attachment I use the SMTP Email send file.vi . But when I run it ,it always have mistake.I will show you my program and the mistake.The  mistake 1 is on the windows 2k .  The mistake 2 is on the mistake windows xp
    Attachments:
    mistake 2.jpg ‏40 KB
    mime.vi ‏40 KB
    mistake1.jpg ‏292 KB

  • Ipad is not restored.. it almost done loading and.it.say There was problem downloading the software for the ipad. the network connection was reset.. i turn off the firewall and antivirus

    ipad is not restored.. it almost done loading and.it.say There was problem downloading the software for the ipad. the network connection was reset.. i turn off the firewall and antivirus.. It was almost donnIe like 5% away to be finish...

    Error -3259 is a network timeout error, usually. This article might help:
    http://support.apple.com/kb/TS2799

Maybe you are looking for