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

Announcements

No record found.

News and Announcements icon
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,788 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,788 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans