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)

AIF - Failed to logon to Microsoft Dynamics AX

(0) ShareShare
ReportReport
Posted on by 2,245

Hi,

After some months working without problems with AIF I have the following problem. We have to AOS Servers. From the main AOS Server the AIF stopped working and our inbound ports doesnt even read the files and the outbound ports also doesnt work.

From our second AOS Server (different physical machine) I can process the inbound and outbound messages without problems. The account in which both servers run is the same and I have tried to regenerate WCF on the client configuration of the problematic AOS.

This is the exceptions I get in this server:

Object Server 03:  An error has occurred in the services framework.  Method: AifMessageInspector::AfterReceiveRequest.  Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.

  bei Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()

  bei Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()

  bei Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)

  bei System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)

  bei System.Collections.Generic.SynchronizedCollection`1.Add(T item)

  bei Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext)

Any ideas? Everything should work ok but I am strugging to guess was could be wrong. Thanks

*This post is locked for comments

I have the same question (0)
  • Giuseppe Caradonna Profile Picture
    1,421 on at

    Hi Pedro,

    I've the same error. Have you solved it?

  • Martin Halberg Profile Picture
    on at

    Also got the same event error - on multiple AX environments - all seams to operate fine though.

  • Community Member Profile Picture
    on at

    I have the same problem.  Anyone find a solution to the problem?  Seeing this on many AOS's in all environments.

  • Ajit Profile Picture
    8,755 on at

    Can you check AX service on both servers are running on same account?

  • Community Member Profile Picture
    on at

    Yes, they are all using a AOS service account.  Does the AOS service account require being a user in DAX?

  • Ajit Profile Picture
    8,755 on at

    If you have installed AX with service account then that must be there.

  • Community Member Profile Picture
    on at

    I installed with an Axadmin account and that is the DAX admin account within DAX.

  • Suggested answer
    Community Member Profile Picture
    on at

    As a test I added our BCP service account as a user within DAX and no errors since.  I hope this helps someone else.

  • Martin Halberg Profile Picture
    on at

    This account is used to connect to the AOS on behalf of a Microsoft Dynamics AX user, but without granting that user excessive privileges in the system. This account must not be a Microsoft Dynamics AX user! If you need to add this account as a user consider it a temporary workaround but not a fix.

    I'm currently troubleshooting this event error, hope I'll be able to solve/figure it out soon and share it with you all.

  • Community Member Profile Picture
    on at

    Any luck?  The error came back shortly after.  I have removed the bcp as a user in DAX.

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