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)

Unable to login to AX via business connector using WCF

(0) ShareShare
ReportReport
Posted on by

Hi,

 

We are facing a problem in logging into AX when using business connector thru WCF service.

System architecture is as below:

We have a WCF service which has BC code to login to AX2009 and read/write the data.

Everything is working fine when WCF service is consumed on the same machine where it is installed. But when it is consumed from a remote machine it fails to login and throws error as in attached file.

And on the windows application in remote machine where WCF is consumed it throws System.ServiceModel.Fault exception.

Anyone have any ideas or experiences with the same?

Regards,

Gopala Krishna.M

*This post is locked for comments

I have the same question (0)
  • 640579632b5c4e6780a624c4771b6f93 Profile Picture
    4,730 on at

    Can you paste the code on how you are getting logged in biz connector?

  • 640579632b5c4e6780a624c4771b6f93 Profile Picture
    4,730 on at

    Try something like that

    System.Net.NetworkCredential credential = new System.Net.NetworkCredential("BCProxyUser","pass123","mydomain");

     Axapta axapta = new Axapta()

     axapta.LogonAs("BCProxyUser","mydomain",credential,"","","","");

  • akuehn Profile Picture
    1,995 on at

    Hi,

    the question is, which of the used "components" is throwing the error. Is it an IIS error or an AX error?

    Also we are talking about an custom WCF service written in VisualStudio or so and not about the AIF, right?

    If you don#t get an AX error the problem could be the configuration of the wcf service itself.

  • Community Member Profile Picture
    on at

    Thanks for your replies:

    Here are more details about setup:

    1. The component throwing the error is .Net BC and the error msg is

    The description for Event ID 110 from source Dynamics .NET Business Connector 6.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    6.0:

    Unable to connect to an Application Object Server. A company name or server name may not be specified correctly in the client configuration, or the server specified may not be available.

    The specified resource type cannot be found in the image file

    Here is how I am calling WCF

     private void btnTestConnection_Click(object sender, EventArgs e)

    {

    EndpointAddress endPointaddress = new EndpointAddress(http://AXCLNT:8731/AxaptaService/);  

    AxaptaServiceClient axaptaService = new AxaptaServiceClient(this.CreateWSHttpBinding(), endPointaddress);

    axaptaService.ClientCredentials.Windows.AllowedImpersonationLevel =

    TokenImpersonationLevel.Impersonation;

    lblConnectionResult.Text = (string)axaptaService.Execute("Test");

    }

    This is working perfectly when calling from system where WCF is running. For example I have distributed environment with AOS on 1 system, WFC, BC on other system and calling the WCF from a different system

    AXAOS - where AOS is installed

    WCF - where WCF service and BC are installed

    AXNet - where from WCF is invoked

    When I write the same code in WCF system it is working perfectly. when call WCF from AXNet it is giving above error. 

  • akuehn Profile Picture
    1,995 on at

    Hi,

    please try to call the logon method of the business connector with a spaecified configuration file (parameter of the method). Could be possible that the business connector is not using a valid configuration and is therefor not able to connect to ax.

    If this doesn't help, please post the code your are using for the wcf service itself.

  • Usman Zuberi Profile Picture
    145 on at

    Have you got answer to your post? I am getting similar kind of error with different Event ID.

    The description for Event ID 180 from source Dynamics .NET Business Connector 6.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    6.0:

    RPC exception 1727 in Ping occurred in session 12 ,process: w3wp.exe ,thread: 9052

    The specified resource type cannot be found in the image file

    Crashing of BC causes my AOS to crash.

  • Community Member Profile Picture
    on at

    Unfortunately not. I had to go with installing BC on the same machine.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans