Problem connecting to BigFix Server

(imported topic written by kogasira)

I am a total newbie in BigFix. Unable to connect to the BigFix server at all. TRied to run the TestAPI.htm or create my own C# project to no avail. Could someone be kind to explain what am I missing? We are running BigFix 8.2.1175

string username = “********”;

string password = “********”;

string dsn = “bes_bfenterprise”;

int siteID = 2;

int fixletID = 3022404;

int action = 0;

FixletMessage fixlet = new FixletMessage();

fixlet.SetDSN(dsn);

fixlet.SetServer(“NAMSTBYGT001”);

fixlet.Load(siteID, fixletID, username, password);

if (fixlet.DiagnosticMessage.Length != 0)

throw new Exception(fixlet.DiagnosticMessage);

Receiving Error: “Unexpected server error: Database Error: A database query unexpectedly failed to return any results. (error HTTP 500 in method /data/load-external-object)”

(imported comment written by Lee Wei)

The C# code looks right.

So we should check configuration issues.

The computer that you are running the program needs to have connection back to the TEM Server.

It needs to have the Platform Server API installed and with the same version as the TEM Server.

Lee Wei