Skip to Content

Connection Failed Error

Hi,all

Has anyone know about this error:"Connection Failed Error:Invalid license server address;make sure the DI configuration file(b1-local-machine.xml) exists and is valid ",I have check the file,the file is ok.

but the error is not always show up,somtimes log on the system again and everything is fine

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Sep 04, 2012 at 05:28 PM

    Hi Jinhui,

    This could be a problem related to your network. Are you using a remote server or your own machine as the server?

    Best regards,

    Pedro Magueija

    Add a comment
    10|10000 characters needed characters exceeded

    • The code as below:

      int retCode = 0;

      string connStr = "";

      B1WizardBase.B1Connections.ConnectionType cnxType = B1WizardBase.B1Connections.ConnectionType.SSO;

      // CHANGE ADDON IDENTIFIER BEFORE RELEASING TO CUSTOMER (Solution Identifier)

      string addOnIdentifierStr = null;

      if ((System.Environment.GetCommandLineArgs().Length == 1)) {

      connStr = B1Connections.connStr;

      }

      else {

      connStr = System.Environment.GetCommandLineArgs().GetValue(1).ToString();

      }

      try {

      // INIT CONNECTIONS

      retCode = B1Connections.Init(connStr, addOnIdentifierStr, cnxType);

      // CONNECTION FAILED

      if ((retCode != 0)) {

      System.Windows.Forms.MessageBox.Show("ERROR - Connection failed: "+ B1Connections.diCompany.GetLastErrorDescription());

      return;

      }

      // CREATE DB

      if (((cnxType == B1WizardBase.B1Connections.ConnectionType.SSO)

      || (cnxType == B1WizardBase.B1Connections.ConnectionType.MultipleAddOns))) {

      COINV_Db addOnDb = new COINV_Db();

      addOnDb.Add(B1Connections.diCompany);

      }

      // CREATE ADD-ON

      COINV addOn = new COINV();

      System.Windows.Forms.Application.Run();

      }

      catch (System.Runtime.InteropServices.COMException com_err) {

      // HANDLE ANY COMException HERE

      System.Windows.Forms.MessageBox.Show("ERROR - Connection failed: " + com_err.Message);

      }

  • Posted on Sep 10, 2012 at 08:11 AM

    Did anyone meet this error?

    pls help.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2013 at 10:31 AM

    Hi all,

    I've got exactly the same issue. Sometimes the addons are starting up without any problem, sometimes I get this error:

    Error : -126

    Invalid license server address; make sure the DI configuration file (b1-local-machine.xml) exists and is valid.

    The result is that the user has to start or restart all Addon manually using the Add-On Manager, which is annoying.

    I'm using Windows Server 2008 R2, Citrix XenApp6.0 and SAP Business One 8.82 PL09.
    Interesting is that before we did the B1 update to 8.82 (from 8.81) everything worked great!

    I already reinstalled B1 on the affected systems. No success.

    License server name or IP doesn't make any difference.

    I have no more idea, how to solve this problem.

    I'm looking forwar to any hint.

    Thanks.

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      We just had this issue and managed to resolve it - hope this helps someone.

      Client was 8.8 (all users on Terminal Services) and had several add-ons running (standard SAP add-ons, B1UP, custom add-on etc).

      Out of the blue they reported that none of the add-ons were connecting and they were getting the error:


      Connection Failed Error: Invalid license server address;make sure the DI configuration file(b1-local-machine.xml) exists and is valid

      What we discovered was that an internal IT person had registered the 8.82 di api SAPBobsCom dll on that TS box but not in the normal location. I guess that the system is expecting the xml file in the same location as the registered dll. Once we registered the correct 8.8 dll all connected OK again.

      Thanks,

      John

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.