Sunday, September 30, 2018

AX 2012 R3 - Windows 2016 - Realtime Service for Retail - Fix for Server Error in '/CDXRealtimeService' Application

When you have installed and later configured it through Powershell through XML configuration file, you may end up one of the errors in the browser when due to certificate thumbprint issue.

URL to check if the real-time service for retail in AX 2012 R3 is running perfectly:

https://localhost:444/CDXRealtimeService/Service.svc






Unfortunately, it gave us a certificate thumbprint issue.

The error would like something:


Server Error in '/CDXRealtimeService' Application.
Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindByThumbprint', FindValue '6B3B49DFAD6100A47EF623C8E471C567BF052530'.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindByThumbprint', FindValue '6B3B49DFAD6100A47EF623C8E471C567BF052530'.

Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



The resolution was to edit web.config file shown in above snapshot, and replace the thumb print with our self-signed certificate thumb print and then reset IIS resolved the issue. A running realtime service should look like something as below without any errors.