SAP Knowledge Base Article - Preview

2198790 - ADONET: Error occurs when calling sp_loginconfig: Object reference not set to an instance of an object - SAP SDK

Symptom

System.NullReferenceException was unhandled
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Sybase.AdoNet45.AseClient
  StackTrace:
       at Sybase.Data.AseClient.AseDataReader.Perform_RetrieveHasNextRow()
       at Sybase.Data.AseClient.AseDataReader.Perform_Skip_Next()
       at Sybase.Data.AseClient.AseDataReader.RetrieveNextResult()
       at Sybase.Data.AseClient.AseDataReader.GetNextResult(Boolean isNeedProcessOutParams)
       at Sybase.Data.AseClient.AseDataReader.NextResult()
       at System.Data.ProviderBase.DataReaderContainer.NextResult()
       at System.Data.Common.DataAdapter.FillNextResult(DataReaderContainer dataReader)
       at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
       at System.Data.Common.LoadAdapter.FillFromReader(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
       at System.Data.DataTable.Load(IDataReader reader, LoadOption loadOption, FillErrorEventHandler errorHandler)
       at System.Data.DataTable.Load(IDataReader reader)
       at ConsoleApplication4.Program.Main(String[] args) in c:\Program.cs:line 25
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:


Read more...

Environment

  • SAP Sybase Software Developers Kit (SDK) 15.7 SP133
  • SAP Software Developers Kit (SDK) for Adaptive Server Enterprise (ASE) 16.0 SP01 PL01
  • Microsoft Visual Studio 2012
  • Adaptive Server Enterprise ADO.NET Data Provider
    • 4.5 Provider ( Sybase.AdoNet45.AseClient.dll )
  • SAP Adaptive Server Enterprise (ASE) 15.7 and 16.0

Product

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

Keywords

TDS, adonet, ADO.NET, SDK, SDK for SAP ASE, 779835, CR#779835, CR779835   , 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.