Skip to Content
author's profile photo Former Member
Former Member

Could not find the resource name specified in the image file

Hi experts.

I use SAP Business One 9.1 PL 6 and I have a problem when I try to connect to DI API.

Error: The resource name specified can not be found in the image file .

I tried uninstalling and diapi client, but i still have the same problem.

Can someone help me?

Thanks .

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Mar 22, 2016 at 12:42 AM

    Hi Brian,

    After re-installing, did you clear your SMOBS folder in the temp ?

    Regards

    Edy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 21, 2016 at 02:14 PM

    Hi Brian,

    Can you share more information? Can you post the code you are using to connect?


    Best regards,

    Pedro Magueija


    View Pedro Magueija's profile on LinkedIn

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 21, 2016 at 04:11 PM

    correcting :*I tried uninstalling diapi and client, but i still have the same problem.





    public void ConnectCompany()

    {

    try

    {

    if (string.IsNullOrEmpty(_ConnectionString) == false && string.IsNullOrEmpty(_CompanyDB) == false && string.IsNullOrEmpty(_UserB1) == false && string.IsNullOrEmpty(_PasswordB1) == false && string.IsNullOrEmpty(_LicenseServer) == false

    && _DbServerType != -1)

    {

    this._oCompany = new SAPbobsCOM.Company();

    this._oCompany.Server = this._Server;

    this._oCompany.CompanyDB = this._CompanyDB;

    this._oCompany.UserName = this._UserB1;

    this._oCompany.Password = this._PasswordB1;

    this._oCompany.LicenseServer = this._LicenseServer;

    this._oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;

    this._oCompany.DbServerType = (SAPbobsCOM.BoDataServerTypes)this._DbServerType;

    if (this._oCompany.Connected == false)

    {

    if (this._oCompany.Connect() != 0)

    {

    throw new Exception(this._oCompany.GetLastErrorDescription());

    }

    }

    }

    else

    {

    throw new Exception("Algum campo de conexão da DI API não foi fornecido");

    }

    }

    catch (Exception ex)

    {

    throw ex;

    }

    }

    Add a comment
    10|10000 characters needed characters exceeded

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.