SAP Knowledge Base Article - Preview

2739063 - Ado.Net - Second exception message causes System.ArgumentOutOfRangeException - SDK for SAP ASE


  • Execute a command and it gives an exception.
  • Then execute another command and it gives an exception.
  • Both commands are executed and received messages back from ASE (both are errors in this case),
  • However the message or exception is lost for the 2nd exception.
  • System.ArgumentOutOfRangeException:
    {"Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index"}



  • SAP Sybase Software Developer Kit (SDK) 15.7
  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0
  • Adaptive Server Enterprise ADO.NET Data Provider
    • 3.5 Provider ( Sybase.AdoNet35.AseClient.dll )
    • 4.0 Provider ( Sybase.AdoNet4.AseClient.dll )
    • 4.5 Provider ( Sybase.AdoNet45.AseClient.dll )
  • Microsoft Windows x64 (64-bit)
  • .Net


SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0 ; Sybase Software Developer Kit 15.7


CR817923, CR# 817923, CR#817923 , KBA , BC-SYB-SDK , SDK , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.