cancel
Showing results for 
Search instead for 
Did you mean: 

Error while connecting to company

dilipkumbhar
Participant
0 Kudos

I am using SAP B1 9.2 PL:08. I have written code in vb.net for updating the master details. In my code , I have used port 30000.

The url of system landscape directory is,

https://motwane-rdp-vm:30010/ControlCenter

In the b1-local-machine.xml from DI API, it is specified as ,

<leaf kind="single" name="SLDAddress" type="String">
<value>192.155.1.6:40000</value>
</leaf><br>

I have used the port 30000 and I can update the data of masters. But sometimes I am getting error as,

-226- - The specified resource name cannot be found in the image file.

-10- - The specified resource name cannot be found in the image file.

I searched and found that port is wrong. So I tried changing the port i.e. 40000 and 30010. But it did not worked . Only 30000 is working and suddenly it starts giving error.

Which port should I use in my SDK code 30000,30010 or 40000 ? How do I fix this problem ?

This is my code of vb.net

 Dim objCompany As New SAPbobsCOM.Company
 objCompany.Server = "192.155.1.7"
 objCompany.LicenseServer ="192.155.1.6:30000"
 objCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2016
            objCompany.UserName = "manager"
            lngStatus = objCompany.Connect()

Accepted Solutions (0)

Answers (2)

Answers (2)

dilipkumbhar
Participant
0 Kudos

Dear Ankit,

Thanks for your reply. I have hosted SAP B1 on Azure cloud. IP of database server is 192.155.1.7 and of SAP server is 192.155.1.6. I have developed a website in ASP.NET and it is deployed on 192.155.1.6. In this website, I have used SAP B1 SDK for updating the master data. All the users are using this website for updating data from SAP.

objCompany.LicenseServer ="192.155.1.6:30000"

This code works for some time and when the traffic on the server increases , the website starts giving error as,

-226- - The specified resource name cannot be found in the image file.

-10- - The specified resource name cannot be found in the image file.

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi dilipkumbhar,

Can you make sure that the IIS Settings are managed as mentioned in SAP Note 2207964?

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi dilipkumbhar,

There are few things to check:

1. Server property should have the same value as it appears in SLD.

2. If you are using SAP HANA:

  • LicenseServer property should have 40000 port.
  • SLDServer property should have 40000 port.

3. If you are using MS SQL:

  • LicenseServer property should have 30000 port.
  • SLDServer property should have 40000 port.

Hope it helps!

Kind regards,

ANKIT CHAUHAN

SAP Business One Support