Cadet 1st Class Cadet 1st Class
Cadet 1st Class
900 views

Problem with the API SDK 9.0

Jump to solution

Hello guys,

I have a this problem: 

I use variables: objID:"TD",  WorkgroupServerName: 10.225.231.186 and port:1137,.

01-09-2017 10:06:17.836 AM | Cargador: 1 | Archivo Metadata: file_input.tab | ERROR: process file_input.tab - The type initializer for 'HP.HPTRIM.SDK.trimPINVOKE' threw an exception.

In code:

using (Database objDB = new Database())
{
objDB.Id = “TD”; //every HPE Content Manager Database has a two character id
objDB.WorkgroupServerName = “10.225.231.186”;
bjDB.WorkgroupServerPort = 1137;
objDB.Connect(); // throws an exception if the connection fails
}

Best Regards 

José Díaz 

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

You might get a better error message if you call TrimApplication.Initialize() first.

 

 


Blog | Samples | CM SDK Docs
**Any opinions expressed in this forum are my own personal opinion and should not be interpreted as an official statement on behalf of MicroFocus**

View solution in original post

0 Likes
1 Reply
Micro Focus Expert
Micro Focus Expert

You might get a better error message if you call TrimApplication.Initialize() first.

 

 


Blog | Samples | CM SDK Docs
**Any opinions expressed in this forum are my own personal opinion and should not be interpreted as an official statement on behalf of MicroFocus**

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.