SAP Knowledge Base Article - Preview

2068791 - Error: SAConnection.Open() throws "System.InvalidOperationException: The ConnectionString property has not been initialized"

Symptom

  • When using the SQL Anywhere ADO.NET provider and opening a connection (e.g. using SACOnnection.Open()), it is possible for the provider to throw a non-SAException.
  • For example, if the connection string is empty ("") or a connection string is built from SAConnectionStringBuilder with no properties set, it is possible to receive the exception:
System.InvalidOperationException: The ConnectionString property has not been initialized.


Read more...

Environment

  • SAP SQL Anywhere (all versions)
  • SQL Anywhere ADO.NET client

Product

SAP SQL Anywhere all versions ; SAP SQL Anywhere, cloud edition all versions ; SQL Anywhere all versions

Keywords

KBA , BC-SYB-SQA , SQL Anywhere (on premise, on demand) , Problem

About this page

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

Search for additional results

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