last day (14 days later) » 

1:07 PM
0
Q: Why SAPbobsCOM.Company COM is too slow to instance on windows server?

Maykol RypkaI 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(); *I'm using SAPBusinessOneSDK.dll and already registered the dll using regasm. Can so...

 
I opened a question on SAP community network too!
So, I changed the IP and deactivated IPV6 too. The problem continues.
 
Daz
Do your connection details match what's in the "C:\Program Files (x86)\SAP\SAP Business One\Conf\b1-local-machine.xml" file?
You said that line takes 1 minute. After that does it continue normally or does it error? Which bitness of DI-API have you installed?
 
Hi @Daz! After that continues normally. I alright tested COM thread apartments MTA and STA, but the problem persists.
We have Sap B1 PL06 installed and the last SDK version.
And about the connection details, yes.
The problem is with the COM, exactly on the instance of SAPbobsCOM.Company(). The Company.Connect(); is fast enough.
 
Daz
When you create the object it actually downloads the latest version stored in SBO_COMMON and puts it in %TEMP%\SM_OBS_DLL\920140 (or SM_OBS_DLL_64). Perhaps an issue with speed of transferring from database server? Might be worth deleting the folder and watching how fast it gets recreated.
 
Hi @Daz, I checked the folder, in my case is %TEMP%\SM_OBS_DLL\920160. The time to folder creation is approximately 3 minutes.
And I checked my "C:\Program Files (x86)\SAP\SAP Business One\Conf\b1-local-machine.xml" again and see that the configuration of license server points to localhost. And my application uses the name of the server. I changed and the problem continues.
Another point is, I've changed the application from the SAP B1 server to another server on the local network, right now the application runs in 6 seconds.
 
 
1 hour later…
Daz
2:20 PM
We often find that changing the server name in b1-local-machine.xml (in fact in two places in that file) to the proper name of the server sometimes helps.
There's also another version of the same file in C:\Program Files\sap\SAP Business One DI API\Conf
 
 
3 hours later…
5:08 PM
I checked and the configurations are different. So, I'll change the configurations at night and see what happen.
Thanks..
 

last day (14 days later) »