title: The I/O operation has been aborted because of either a thread exit or an application request
body: <p>My application is working as a client application for a bank server. The application is sending a request and getting a response from the bank. This application is normally working fine, but sometimes </p>
  
  <blockquote>
    <p>The I/O operation has been aborted because of either a thread exit or
    an application request</p>
  </blockquote>
  
  <p>error with error code as 995 comes through. </p>
  
  <pre><code>public void OnDataReceived(IAsyncResult asyn)
  {
      BLCommonFunctions.WriteLogger(0, "In :- OnDataReceived", 
                                          ref swReceivedLogWriter, strLogPath, 0);
      try
      {
          SocketPacket theSockId = (SocketPacket)asyn.AsyncState;
  
          int iRx = theSockId.thisSocket.EndReceive(asyn); //Here error is coming
          string strHEX = BLCommonFunctions.ByteArrToHex(theSockId.dataBuffer);                    
  
      }
  }
  </code></pre>
  
  <p>Once this error starts to come for all transactions after that same error begin to appear, so
  please help me to sort out this problem. If possible then with some sample code </p>
  
  <p>Regards,
  Ashish Khandelwal</p>