Skip to Content
0
Sep 07, 2004 at 10:52 AM

DI:Error when connecting to the Company object

188 Views

Hi there,

I have come back from my holidays and I have a trouble with a quite trivial code. Here is the code:

MyComp = new CompanyClass();

MyComp.language=BoSuppLangs.ln_Spanish;

MyComp.Server = "(local)";

MyComp.CompanyDB = "SBODemo_ES";

MyComp.UserName = "manager";

MyComp.Password = "manager";

MyComp.UseTrusted = true;

int ConOK = MyComp.Connect();

if (ConOK!=0)

{

ViewError(false);

return;

}

When I try to connect it gives me -8006 error (it says "Resource Error"). The parameters are OK. I have try the same code on another PC and worked OK. The only diference I have found between both PC´s is the SQL Server language (mine is spanish, the one that worked english).

I have made several tries changing the Languaje and UseTrusted properties without improvements.

My SBO version is 6.5.097 SP: 01 EF:07

Can someone give me any help?

Thanks in advance,

Ibai Peñ