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)

AX7 Environment startup issues

(0) ShareShare
ReportReport
Posted on by 692

Hi

The Test environment I am working on is giving me a "HTTP Error 503. The service is unavailable.". This is on an application release 7.3 and platform update 12

When I look at the event logs I am seeing these errors and warnings:

Failed to create a metadata service client in 5 attempts.

Received the following exception when contacting the AX Metadata Service possibly due to expired token. Attempted to retry the operation 5 times with no success. The HTTP service located at localhost/.../MetadataService is unavailable. This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later.

Metadata service communication retry attempts failed to resolve issues with the following settings AX7CertificateUserName: FRServiceUser@dynamics.com; AX7CertificateThumbprint: CB3BDAE89EFA5B268A3ED88D2C5A96EBF9C791B5; AX7FederationRealm: spn:00000015-0000-0000-c000-000000000000; AX7ProviderName: mintedtoken.dynamics.com; AX7TokenIssuer: fakeacs.accesscontrol.windows.net
Component: Microsoft.Dynamics.Integration.Common.TraceLog
User: NT AUTHORITY\NETWORK SERVICE

The description for Event ID 110 from source Microsoft Dynamics 365 for Finance and Operations, Enterprise edition 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:

AX is shutting down due to an error.
Error initializing X++ event handlers. Please verify that application is deployed and compiled correctly. Error messages follow:
An exception was encountered while initializing event handler initializer 'InitMethod' on type 'Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass, Dynamics.AX.eBECSextension, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'Dynamics.AX.Application.WPPWorkOrderStatusUpdate' from assembly 'Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

Exception details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Dynamics.Ax.Xpp.EventHandlerInitializationException: An exception was encountered while initializing event handler initializer 'InitMethod' on type 'Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass, Dynamics.AX.eBECSextension, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. ---> System.TypeLoadException: Could not load type 'Dynamics.AX.Application.WPPWorkOrderStatusUpdate' from assembly 'Dynamics.AX.ApplicationSuite, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
at Dynamics.AX.Application.EventHandler.EventHandlersInitializeClass.InitMethod()
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.<>c.<InitializeMetadataEventHandler>b__58_0(MethodInfo eventHandler)
at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.InitializeMetadataEventHandler()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments)

Has anyone seen this before? Any help would be much appreciated.

Thanks,
Joe

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    When did it stop working?

    Is it a Microsoft hosted environment or is it in your own Azure subscription? Or locally in your network?

    This could be about the expired certificates but that should have broken the environment already in April. Anyway, check this post: blogs.msdn.microsoft.com/.../rotate-the-expired-or-nearly-expired-ssl-certificate-on-your-subscriptions-one-box-environments

    Or, it could be about a broken / bad deployable package. Did you deploy something to the environment before it stopped working?

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

    Kindly check an Anonymous Authentication is enable on IIS, I Faced the same issue and then resolve by enabling  Anonymous Authentication on IIS

  • Nirvana115 Profile Picture
    4,921 on at

    Hi,

    I'm facing the same error messages; any solution plsss....

    Best,

  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

    Have you checked the Anonymous Authentication is enable on IIS? Also follow the steps mentioned in Nikloas reply.

  • Nirvana115 Profile Picture
    4,921 on at

    Hi Sohail,

    I have a on-premises version not cloud.

    Best,

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