cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Attempting to access an invalid datasource" when attempting to connect with the Unity API v18

Michael_Norton
Champ on-the-rise
Champ on-the-rise

While attempting to connect to an OnBase 18 App Server using the Unity 18 dlls using the following code (from my API class), I'm receiving the error message "Attempting to access an invalid datasource". I have validated the datasource name I am passing in the OnBase Web Application Management Console.

Anyone have any ideas?

 

public Hyland.Unity.Application Connect(string username, string password){try{OnBaseAuthenticationProperties props = Application.CreateOnBaseAuthenticationProperties(g_url,username,password,g_datasource);Hyland.Unity.Application app = Application.Connect(props);return app;}
2 REPLIES 2

Adam_Kuhn
Star Collaborator
Star Collaborator

When you create the ODBC connection for the Datasource, what name do you give it?

Forgive my ignorance, but we don't use ODBC on version 18 do we? I thought the datasource was defined in the Web Application Management Console.