Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

AX7 Environment startup issues

(0) ShareShare
ReportReport
Posted on by 690

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

  • Nirvana115 Profile Picture
    Nirvana115 4,917 on at
    RE: AX7 Environment startup issues

    Hi Sohail,

    I have a on-premises version not cloud.

    Best,

  • Suggested answer
    Sheikh Sohail Profile Picture
    Sheikh Sohail 6,125 on at
    RE: AX7 Environment startup issues

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

  • Nirvana115 Profile Picture
    Nirvana115 4,917 on at
    RE: AX7 Environment startup issues

    Hi,

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

    Best,

  • Suggested answer
    Sheikh Sohail Profile Picture
    Sheikh Sohail 6,125 on at
    RE: AX7 Environment startup issues

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

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: AX7 Environment startup issues

    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?

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans