web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Facing issue in test connection of Async Client

(0) ShareShare
ReportReport
Posted on by 3,801

Hi all,

I am facing issue "test connection failed during installation of async client". 

First, I was facing error of certificate because it was expired. I have created new one and attach it to my async server app pool.

Still facing the test connection failure.

In eventviewer, I am getting this log,

WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/12036987
Exception: System.ServiceModel.ServiceActivationException: The service '/AsyncServer/UploadService.svc' cannot be activated due to an exception during compilation. The exception message is: Invalid hexadecimal string format.. ---> System.FormatException: Invalid hexadecimal string format.
at System.IdentityModel.SecurityUtils.DecodeHexString(String hexString)
at System.IdentityModel.Selectors.X509CertificateStore.Find(X509FindType findType, Object findValue, Boolean validOnly)
at System.ServiceModel.Security.SecurityUtils.GetCertificateFromStoreCore(StoreName storeName, StoreLocation storeLocation, X509FindType findType, Object findValue, EndpointAddress target, Boolean throwIfMultipleOrNoMatch)
at System.ServiceModel.Security.SecurityUtils.GetCertificateFromStore(StoreName storeName, StoreLocation storeLocation, X509FindType findType, Object findValue, EndpointAddress target)
at System.ServiceModel.Configuration.X509RecipientCertificateServiceElement.ApplyConfiguration(X509CertificateRecipientServiceCredential cert)
at System.ServiceModel.Configuration.ServiceCredentialsElement.ApplyConfiguration(ServiceCredentials behavior)
at System.ServiceModel.Configuration.ServiceCredentialsElement.CreateBehavior()
at System.ServiceModel.Description.ConfigLoader.LoadBehaviors[T](ServiceModelExtensionCollectionElement`1 behaviorElement, KeyedByTypeCollection`1 behaviors, Boolean commonBehaviors)
at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress, Boolean skipHost)
at System.ServiceModel.ServiceHostBase.LoadConfigurationSectionInternal(ConfigLoader configLoader, ServiceDescription description, ServiceElement serviceSection)
at System.ServiceModel.ServiceHost.ApplyConfiguration()
at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)
at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)
at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses)
at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
--- End of inner exception stack trace ---
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
Process Name: w3wp
Process ID: 11776

*This post is locked for comments

I have the same question (0)
  • Zakeer Hussain Profile Picture
    345 on at
    RE: Facing issue in test connection of Async Client

    There is an invisible space at the beginning of the key when you copy paste from certificate.

    You can only discover with arrow keys on your keyboard.

  • Ayush Jain Profile Picture
    120 on at
    RE: Facing issue in test connection of Async Client

    In notepad file thumb print may take blank space initiallly. write the complete thumbprint by typing, no copy paste.   

  • Mark_Edel Profile Picture
    160 on at
    RE: Facing issue in test connection of Async Client

    Hi Hazan,

    Did you already fixed the issue? I have the same problem.

    Did you just create a new certificate and change the thumbprint in web.config?

    Regards,

    Mark

  • Shafeeque P. Profile Picture
    6,523 Moderator on at
    RE: Facing issue in test connection of Async Client

    Did you mask the server name in the event viewer for security reasons or it was the showing the same way in event viewer ? If you din't mask it, I recommend checking the URL for the web service. 

    2016_2D00_05_2D00_23_5F00_11_2D00_44_2D00_01.jpg

  • AbuEid Profile Picture
    80 on at
    RE: Facing issue in test connection of Async Client

    Make sure to get rid of spaces and that pesky hidden character at the beginning of the thumbprint if you are copying and pasting.

  • Hassan_rulz Profile Picture
    3,801 on at
    RE: Facing issue in test connection of Async Client

    Yes, I have.

  • Oksana Kovaliova Profile Picture
    3,597 on at
    RE: Facing issue in test connection of Async Client

    Hi Hassan,

    Did you change certificate thumbprint in web.config file of Async Server after changing the certificate?

    2016_2D00_05_2D00_20_5F00_0_2D00_40_2D00_24.png

    Regards,

    Oksana

  • AbuEid Profile Picture
    80 on at
    RE: Facing issue in test connection of Async Client

    have you update Web.config file with the thumbprint of the new certificate ?

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Community Member Profile Picture

Community Member 2

#2
Mea_ Profile Picture

Mea_ 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans