on 2025 Mar 06 4:36 PM
Hi All,
I have an application (service) that uses DI-API.
With the new version 2502 it is not possible anymore to connect to the DI-API when an Identity Provider was activated:
I have followed the explanation of this document:
I have created an extension of type 'Daemon Service' in the Extension Single Sign On Manager.
I can sucessfully get an access token, and the company ID.
However when I use it to connect to the company I get this error message:
My code:
SAPbobsCOM.Company m_company = new SAPbobsCOM.Company();
m_company.AccessToken = accessToken;
m_company.CompanyID = companyID;
m_company.Server = server;
if (m_company.Connect() != 0)
{
//Error
MessageBox.Show("Error occured with code: " + m_company.GetLastErrorCode() + " " + m_company.GetLastErrorDescription());
}
else
{
// Get the current company information
SAPbobsCOM.CompanyInfo companyInfo = m_company.GetCompanyService().GetCompanyInfo();
string message = string.Format("Company Name: {0}\nCompany Version: {1}",
companyInfo.CompanyName, companyInfo.Version);
MessageBox.Show(message, "Connected!");
return m_company;
}
Any help would be appreciated!
Request clarification before answering.
Hallo @Fangio_Roegies ,
To fix the SLD connection error you're seeing:
I've had this issue before. Check these thingsMake sure to explicitly set both servers
m_company.SLDServer = "your-sld-server:30000"; // The actual SLD hostname/IP
m_company.LicenseServer = "your-license-server:40000"; // Often same as SLD
The service layer needs both values, even though the client usually gets this automatically. For daemon services specifically, these connections need explicit parameters.
Also check that your firewall isn't blocking those ports and that the SLD service is running on the server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
8 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.