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
Hi Sohail,
I have a on-premises version not cloud.
Best,
Have you checked the Anonymous Authentication is enable on IIS? Also follow the steps mentioned in Nikloas reply.
Hi,
I'm facing the same error messages; any solution plsss....
Best,
Kindly check an Anonymous Authentication is enable on IIS, I Faced the same issue and then resolve by enabling Anonymous Authentication on IIS
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?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156