web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Failed to initialize Business connector

(0) ShareShare
ReportReport
Posted on by

Hello Everyone !

I am trying to call a function that is located in an AX class. I am doing this from .Net application in C#. 

I am using Microsoft.Dynamics.BusinessConnectorNet.dll

the code that i am using is given below:

Axapta ax;
Object axObject;
ax = new Axapta();
System.Net.NetworkCredential nc = new System.Net.NetworkCredential("username", "pass","domain");
string username = "username";
ax.LogonAs(username.Trim(), "domain", nc, "", "", "", "");
Label1.Text = " logged on to axapta";
axObject = ax.CallStaticClassMethod("TestClass", "returnString", "my parameter");
Label1.Text = axObject.ToString();

but the code gives me the error at the red line

Error: Failed to initialize Business connector. 

I have double checked that my credentials are valid.

What might be the error and what is the possible solution ?

*This post is locked for comments

I have the same question (0)
  • Dick Wenning Profile Picture
    8,705 Moderator on at

    add an axc file to it, you no depending on the default configuration

    Microsoft.Dynamics.BusinessConnectorNet.Axapta DynAx;

    DynAx = new Microsoft.Dynamics.BusinessConnectorNet.Axapta();

    System.Net.NetworkCredential nc = new

    System.Net.NetworkCredential("ProxyUserId", "password");

    DynAx.LogonAs(Environment.UserName,"FullyQualifiedDomainName",nc,"dat",

    "en-us"," company1@AOS:2713","AXClient");

    DynAx.LogonAs(Environment.UserName,"FullyQualifiedDomainName",nc,"dat",

    "en-us","company1@AOS:2713","c:\\Client.axc");

  • Hariharans87 Profile Picture
    3 on at

    Refer into this links

    community.dynamics.com/.../190868

    Check the Business connector setting in the AX client configuration utility application.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans