cancel
Showing results for 
Search instead for 
Did you mean: 

Class not registered error

Former Member
0 Kudos

I have an application running that transfers data between SBO and my software.

The customer is upgrading to the lastest SBO version. I'm debugging my software in test enviroment and I get the following msg when connecting to the customer SBO : Class not registered error.

Here is the code snippet that has been workin over an year.

SAPbobsCOM.CompanyClass oCmp = new SAPbobsCOM.CompanyClass();

oCmp.Server = "servername";

oCmp.CompanyDB = "dbname";

oCmp.UserName = "username";

oCmp.Password = "pw";

oCmp.UseTrusted = false;

oCmp.Connect();

I'm connecting to SBO from workstation and the SAPobsCOM.dll (ver 6.7) is registered in my computer.

Has anyone faced the same problem?

Best regards,

Petteri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Do you have have the same version in test enviroment and Client?

I think that you should have the same DI API version.

Try remove the API and re-install the same version i both enviroment.

Ribeiro Santos

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Have you already solved the problem?

Even if you are working with C# the right object to use is Company and not CompanyClass.

In my C# code I use:

SAPbobsCOM.Company diCompany = new SAPbobsCOM.Company();

and it works fine.

Regards,

Trinidad.

Answers (1)

Answers (1)

FOA
Advisor
Advisor
0 Kudos

Hello Pertti,

Why dont you use the object instead of the class, then you will have no problem connecting.

oCmp = New SAPbobsCOM.Company

Regards,

Felipe

Former Member
0 Kudos

Hi Felipe,

Thank you for your reply.

I'm using C# and SAPbobsCOM.Company is an interface so it can not be instantiated. CompanyClass is the class that implements the Company interface. In VB it might not make any difference?

Anyway, the software has been running over an year with no problems until the customer updated latest SBO version.

I think that I'm missing some DLL.

Regards,

Petteri