Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect

Posted on by 410

We got an incident where users cannot log in to AX2012 for like 30 minutes. (They can open client but the screen is freezing without showing any error)

During that time we found the error below in event log.

 

I also attached the events, could you please have a look.

The time that this issue occur is around 4.30PM – 4.54PM. In security log it shows that a lot of failed login of ax administrator account but we did not update anything on this account.

Object Server 01:
An error has occurred in the services framework. Method: AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect.

at System.Security.Principal.WindowsIdentity.KerbS4ULogon(String upn, SafeAccessTokenHandle& safeTokenHandle)
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName, String type)
at System.Security.Principal.WindowsIdentity..ctor(String sUserPrincipalName)
at Microsoft.Dynamics.Ax.Services.AxSessionInitBehavior.getUserSid(String logonAsUser)
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()
at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)
at System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
at Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext)
The Zone of the assembly that failed was:
MyComputer

*This post is locked for comments

  • Victor123 Profile Picture
    Victor123 210 on at
    RE: AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect

    Did you find a reason for this issue and were you able to solve it?

    We have encountered a similar problem with the same error message in Event Viewer.

  • Tanyaboon Profile Picture
    Tanyaboon 410 on at
    RE: AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect

    I found this log on Security log in AOS event log but I'm not sure how solve it.

    Event ID 4625

    An account failed to log on.

    Subject:
    Security ID: S-1-5-21-87973221-1679952511-1905203885-14330
    Account Name: axadmin
    Account Domain: OFFICE
    Logon ID: 0xC41361C

    Logon Type: 3

    Account For Which Logon Failed:
    Security ID: NULL SID
    Account Name:
    Account Domain:

    Failure Information:
    Failure Reason: Unknown user name or bad password.
    Status: 0xC000006D
    Sub Status: 0xC0000064

    Process Information:
    Caller Process ID: 0x3cfc
    Caller Process Name: D:\Program Files\Microsoft Dynamics AX\60\Server\DEXTRAAX63LIVE\bin\Ax32Serv.exe

    Network Information:
    Workstation Name: IDC-SRV-AOS2
    Source Network Address: -
    Source Port: -

    Detailed Authentication Information:
    Logon Process: C
    Authentication Package: Kerberos
    Transited Services: -
    Package Name (NTLM only): -
    Key Length: 0

    This event is generated when a logon request fails. It is generated on the computer where access was attempted.

    The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.

    The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).

    The Process Information fields indicate which account and process on the system requested the logon.

    The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.

    The authentication information fields provide detailed information about this specific logon request.
    - Transited services indicate which intermediate services have participated in this logon request.
    - Package name indicates which sub-protocol was used among the NTLM protocols.
    - Key length indicates the length of the generated session key. This will be 0 if no session key was requested.

  • Tanyaboon Profile Picture
    Tanyaboon 410 on at
    RE: AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect

    Yesterday, I found this error happened again. Not sure by the Domain due to I didn't found an error about system or security event log.

    Can you suggest for this ?

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: AifMessageInspector::AfterReceiveRequest. Error: System.Security.SecurityException: The user name or password is incorrect

    Doesn't it mean that all accounts had the same problem and you see the message from AifMessageInspector only because it's explicitly logged, unlike interactive logins?

    It looks like a problem with AD or Kerberos.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans