Skip to Content
avatar image
Former Member

Why SAPbobsCOM.Company COM is too slow to instance on Windows Server?

I developed an console application to connect to SAP B1 via DI API and notice the line below is too slow to execute. It takes about 1 min to run.

SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company();
More about the context:
  1. using SAPBusinessOneSDK.dll
  2. running the app on the same server of SAP B1 were installed

Can someone help me identify the cause of the problem?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 10, 2017 at 07:18 PM

    So, I've found the solution to my problem!
    I've removed all b1logger files from the folder: *C:\ProgramData\SAP\SAP Business One\Log\SAP Business One\%UserProfile%\DIAPI* and the execution speed was improved. Now, the connection occurs in 7 seconds. So, we deactivated the b1logger for our DI API!

    Add comment
    10|10000 characters needed characters exceeded