Error: System.ArgumentException: Absolute path information is required.

Error: System.ArgumentException: Absolute path information is required.

My situation is this:

  • Virtual Machine Oracle V 5.2.8
  • Running Ubuntu 16.04
  • With a C# Program developed in MonoDevelop
  • This program executes queries to a Db2 - Luw Database

The Virtual Machine is hosted in Windows 10 Pro, in this machine is the database to which the queries
have to be performed.

The Problem seems to be in the connection string.

I have tried:

CnxStr = "Provider=IBMDADB2;" 
       + "Database=192.168.10.1\\MazeGlBl;" 
       + "Hostname=192.168.10.1;" 
       + "Protocol=TCPIP;" 
       + "Port=50000;" 
       + "Uid=db2admin;"
       + "Pwd=sa;";

Returned: System.ArgumentException: Absolute path information is required.

And also:

CnxStr = "Provider=IBMDADB2;" 
	+ "Database=192.168.10.1\\C:\\DB2\\NODE0000\\MazeGlBl;" 
	+ "Hostname=192.168.10.1;" 
	+ "Protocol=TCPIP;" 
	+ "Port=50000;" 
	+ "Uid=db2admin;"
	+ "Pwd=sa;";

Returned: System.ArgumentException: Absolute path information is required.

Also tried this:

CnxStr = "Server=192.168.10.1;Database=MazeGlBl;UID=db2admin;PWD=sa";

Returned:
System.DllNotFoundException: db2app.dll

But db2app.dll is correctly located at: C:\Program Files\ibm\sqllib\bin\db2app.dll

And also tried:

CnxStr =  "Server=192.168.10.1:50000;Database=MazeGlBl;UID=db2admin;PWD=sa"

Returned:
System.DllNotFoundException: db2app.dll

But db2app.dll is correctly located at: C:\Program Files\ibm\sqllib\bin\db2app.dll

0 answers