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)

Regenerate WCF Configuration Error - A Call to SSPI failed, see inner exception

(0) ShareShare
ReportReport
Posted on by

Hi, 

I faced this error when I clicked "Refresh Configuration" at Dynamics AX Configuration Utility. 

Error Title: Regenerate WCF Configuration

Error Message: 

An error occured while regenerating WCF configuration:

Exception occured on the metadata service on client or server. See exception details below:

>A call to SSPI failed, see inner exception.

 regenerate-wcf-configuration-error-SSPI-failed.png

p/s: actually i need to refresh configuration because I faced error at Visual Studio 2010 when i try to load a list of queries from Dynamics AX.

Please help. 

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at
    RE: Regenerate WCF Configuration Error - A Call to SSPI failed, see inner exception

    Hi Azlan Wahidin,

    Do you have any errors in windows log ?

  • Community Member Profile Picture
    on at
    RE: Regenerate WCF Configuration Error - A Call to SSPI failed, see inner exception

    Hi ievgen Miroshnikov,

    Yes. These are some errors & warnings related to Dynamic AX: 

    1. Warning:

    Unable to get version information using existing WCF configuration from local storage.

    Exception details:

    Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceException: Exception occurred on the metadata service on client or server. See exception details below:

    >A call to SSPI failed, see inner exception. ---> System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you

      --- End of inner exception stack trace ---

      at System.Net.Security.NegoState.StartSendAuthResetSignal(LazyAsyncResult lazyResult, Byte[] message, Exception exception)

      at System.Net.Security.NegoState.StartSendBlob(Byte[] message, LazyAsyncResult lazyResult)

      at System.Net.Security.NegoState.ProcessAuthentication(LazyAsyncResult lazyResult)

      at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, ChannelBinding binding, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)

      at System.Net.Security.NegotiateStream.AuthenticateAsClient(NetworkCredential credential, String targetName, ProtectionLevel requiredProtectionLevel, TokenImpersonationLevel allowedImpersonationLevel)

      at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty& remoteSecurity)

      --- End of inner exception stack trace ---

    Server stack trace:

      at System.ServiceModel.Channels.WindowsStreamSecurityUpgradeProvider.WindowsStreamSecurityUpgradeInitiator.OnInitiateUpgrade(Stream stream, SecurityMessageProperty& remoteSecurity)

      at System.ServiceModel.Channels.StreamSecurityUpgradeInitiatorBase.InitiateUpgrade(Stream stream)

      at System.ServiceModel.Channels.ConnectionUpgradeHelper.InitiateUpgrade(StreamUpgradeInitiator upgradeInitiator, IConnection& connection, ClientFramingDecoder decoder, IDefaultCommunicationTimeouts defaultTimeouts, TimeoutHelper& timeoutHelper)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.SendPreamble(IConnection connection, ArraySegment`1 preamble, TimeoutHelper& timeoutHelper)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.DuplexConnectionPoolHelper.AcceptPooledConnection(IConnection connection, TimeoutHelper& timeoutHelper)

      at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)

      at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)

      at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)

      at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at Microsoft.Dynamics.AX.Framework.Services.Metadata.Service.IAxMetadataService.GetServicesVersionInformation(Guid versionId)

      at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceClient.<>c__DisplayClasscf.<GetServicesVersionInformation>b__cc(IAxMetadataService channel)

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

      --- End of inner exception stack trace ---

      at Microsoft.Dynamics.AX.Framework.Services.Client.ServiceClientHelper.InvokeChannelOperation[TResult,TChannel](IServiceClient`1 client, Func`2 operationInvoker, Func`2 exceptionWrapper)

      at Microsoft.Dynamics.AX.Framework.Services.Client.MetadataServiceClient.GetServicesVersionInformation(Guid versionId)

      at Microsoft.Dynamics.AX.Framework.Services.Client.Configuration.ClientConfigurationInternal.GetClientConfiguration()

    2. Error

    "Unable to connect to the AOS specified in the Microsoft Dynamics AX Client Configuration. The configuration could be missing, invalid, or the AOS is not running. To connect to the AOS, check the network connection between the client and the AOS, verify that a valid configuration exists, and that the AOS service is running on the server." was shown due to the exception NoKernelSessionException: No .NET Business Connector session could be found.

    3. Error

    Dynamics Object Adapter Call failed.

    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

    System.AccessViolationException
    at Microsoft.Dynamics.AX.ManagedInterop.CMultiSession.{dtor}(CMultiSession* )
    at ___CxxCallUnwindDtor(IntPtr pDtor, Void* pThis)
    at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)
    at Microsoft.Dynamics.AX.ManagedInterop.Object.Call(String methodName, Object param1)
    at Microsoft.Dynamics.Framework.BusinessConnector.Session.DynamicsObjectAdapter.Call(String methodName, Object param1)

    4. Error

    The description for Event ID 110 from source Dynamics .NET Business Connector 6.0 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:

    6.0:
    Unexpected situation
    More Information:

    5. Warning

    The description for Event ID 193 from source Dynamics .NET Business Connector 6.0 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:

    6.0:
    Could not load assembly 'Microsoft.Dynamics.Retail.StoreConnect.TransAutomClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=AMD64' or one of its dependencies.

    6. Warning

    The description for Event ID 194 from source Microsoft Dynamics AX 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:

    Microsoft Dynamics AX Business Connector Session 5.


    Updating VSAssembly Client Cache (option = 3).
    VSAssembly Client Cache (count = 12, timestamp = 29/Dec/2016 03:20:13 am)
    3 17/Nov/2012 02:11:46 am \Visual Studio Projects\C Sharp Projects\Channels.Headquarters.PricingProxy\Microsoft.Dynamics.Commerce.Headquarters.PricingProxy.dll
    3 28/Jan/2015 11:59:42 am \Visual Studio Projects\C Sharp Projects\DigipoortServices\Microsoft.Dynamics.Digipoortservices.dll
    3 28/Jan/2015 11:59:42 am \Visual Studio Projects\C Sharp Projects\DigipoortServices\Microsoft.Dynamics.Digipoortservices.dll.config
    3 17/Nov/2012 02:12:18 am \Visual Studio Projects\C Sharp Projects\EInvoiceCFDI_MX\EInvoiceCFDI_MX.dll
    3 17/Nov/2012 02:12:18 am \Visual Studio Projects\C Sharp Projects\EInvoiceCFDI_MX\EInvoiceCFDI_MX.dll.config
    3 17/Nov/2012 02:12:18 am \Visual Studio Projects\C Sharp Projects\electronicfiscaldocument_br\ElectronicFiscalDocument_BR.dll
    3 17/Nov/2012 02:12:18 am \Visual Studio Projects\C Sharp Projects\electronicfiscaldocument_br\ElectronicFiscalDocument_BR.dll.config
    2 17/Nov/2012 02:12:21 am \Visual Studio Projects\C Sharp Projects\ElsterTransferHandler_DE\Microsoft.Dynamics.ElsterTransferHandler.dll
    3 17/Nov/2012 02:13:21 am \Visual Studio Projects\C Sharp Projects\exchangerateprovider\Microsoft.Dynamics.AX.Application.FinancialManagement.dll
    3 17/Nov/2012 02:15:39 am \Visual Studio Projects\C Sharp Projects\QRCode\QRCode.dll
    2 17/Nov/2012 02:16:33 am \Visual Studio Projects\C Sharp Projects\VendInvoiceDocumentReport.BusinessLogic\VendInvoiceDocumentReport.BusinessLogic.dll
    3 28/Jan/2015 12:00:52 pm \Visual Studio Projects\C Sharp Projects\XmlSign\Microsoft.Dynamics.XmlSign.Xades.dll

  • Mea_ Profile Picture
    60,284 on at
    RE: Regenerate WCF Configuration Error - A Call to SSPI failed, see inner exception

    Error number 2 say that there is some issue with connecting to AOS. So are you able to run AX client at all ? Does configuration have valid AOS address and port ?

  • fajar Profile Picture
    3,805 on at
    RE: Regenerate WCF Configuration Error - A Call to SSPI failed, see inner exception

    I faced this error too. can anyone help?

  • Community Member Profile Picture
    on at
    RE: Regenerate WCF Configuration Error - A Call to SSPI failed, see inner exception

    Yes. I can run AX Client as normal.

    The problem is, we have 2 AOS instance inside one server.

    1. AXUAT

    TCP/IP Port         2712

    Services WSDL Port 8101

    2. AXMaster

    TCP/IP Port         2713

    Services WSDL Port 8102

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Regenerate WCF Configuration Error - A Call to SSPI failed, see inner exception

    You can have as many AX configurations stored in the registry as you want. First of all you need to ensure that the user who is running the AX configuration tool is a valid, enabled AX user. Make sure that your AX application is compiled error-free, you have generated Full CIL error-free, and in the Services and Application Integration Framework node within the AX System Administration module for your Inbound ports are all showing green (if not, restart the AOS instance).

    If you set the 2 ports up correctly in the AX configuration after confirming the above are all fine, you should be able to refresh configuration.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans