cancel
Showing results for 
Search instead for 
Did you mean: 

DI:Error when connecting to the Company object

Former Member
0 Kudos

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ñ

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Only for information, I have fixed the error.

Looks like there was a corrupted file or something like that in the DI. So I uninstall and reinstall the DI and everything worked perfect.

Regards,

Ibai Peñ

Former Member
0 Kudos

I am getting this error now in SBO 2005. I tried re-installing the client (which now includes the DI-API) and it still does not fix it.

This code was working fine a few days ago and now it does not. Any ideas what this error means?

Carlos

Former Member
0 Kudos

Hi Carlos,

the problem you suggest is caused every time you run windows xp update (from Ms Web site) procedure or install something for OS (eg: Sdk 1.1).

To fix you have to:

1) uninstall DI Server, Server tools, SDK.

2) delete the SM_OBS_DLL directory (in your temp directory c:\documents and settings\"user"\local settings\temp (check show folders and files on options))

3) reinstall DI Server, Server tools, SDK.

That's all.

Fausto

Former Member
0 Kudos

Wow!

Thank you very much Fausto.

You are a genius!

As vague as your solution sounds, it worked.

Carlos

Answers (0)