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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

AX2012 WSDL error

(0) ShareShare
ReportReport
Posted on by 195

Hello

I try to deploy a service to IIS (AifGDS), all pass without any errors. I've done all steps "Create and configure the integration port" at http://technet.microsoft.com/en-us/library/hh496418.aspx without errors.

But when I try to open WSDL link I see this error:

Server error in application  '/MicrosoftDynamicsAXAif60'.

--------------------------------------------------------------------------------

Configuration error

Syntax analizer: There is no endpoint behavior named "clientEndpointBehavior".

Source error:

Line 49: 

Line 50: <client>
Line 51: <endpoint name="GenericDocumentService" address="net.tcp://ax2012:8201/DynamicsAx/Services/Wtest" binding="netTcpBinding" bindingConfiguration="DefaultServiceGroupBinding" contract="*" behaviorConfiguration="clientEndpointBehavior">
Line 52: <identity><servicePrincipalName /></identity>
Line 53: </endpoint>

Source file: C:\Program Files\Microsoft Dynamics AX\60\AifWebServices\Wtest\web.config Line: 51

What I have to do to solve this problem ?

*This post is locked for comments

I have the same question (0)
  • Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    Hi FDIALKE,

    Request you to please refresh the WCF configuration under the Connection tab from Client Configuration Utility, and check if it works.

  • Fdialke Profile Picture
    195 on at

    Hi Umesh Pandit,

    It does not work, I still get this error (There is no endpoint behavior named "clientEndpointBehavior")

  • Martin Dráb Profile Picture
    237,904 Most Valuable Professional on at

    It seems that your web.config refers to clientEndpointBehavior which doesn't exist. You should create a new endpoint behavior of that name.

  • Fdialke Profile Picture
    195 on at

    I've created behavior named "clientEndpointBehavior" (with helo of WCF editor - Configure button) but get new error:

    Server error in application '/MicrosoftDynamicsAXAif60'

    [ArgumentNullException: Value can not be undefined.

    Имя параметра: routerServiceEndpoint]

      Microsoft.Dynamics.Ax.Services.Host.AxServiceHost.AddServiceEndpoints(Assembly serviceAssembly) +664

      Microsoft.Dynamics.Ax.Services.Host.AxServiceHost..ctor(ServiceElement serviceElement, String axServiceAssemblyName, Type routerServiceType, RoutingConfiguration routingConfiguration, Configuration serviceConfiguration, String portName, Uri[] baseAddresses) +196

      Microsoft.Dynamics.Ax.Services.Host.AxServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +475

      System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +578

      System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +1451

      System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +76

      System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +901

    [ServiceActivationException: Unalbe to activate service

    "/MicrosoftDynamicsAXAif60/Wtest/xppservice.svc" because of exception during compilation. Exception message: Value can not be undefined.

    Parameter name: routerServiceEndpoint.]

      System.Runtime.AsyncResult.End(IAsyncResult result) +649900

      System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +210877

      System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +166

    I don't understand one thing: I've not created something specific, I've created simple inbound port with HTTP adapter on standard Ax2012 service (ADS) and it doesn't work ... why ? :(

  • ahmed Safarini Profile Picture
    40 on at

    I have the same problem , anyone can help ?

  • Community Member Profile Picture
    on at

    Hello ,

    I have the same issue.  I used the default port configuration that was generated by AX and I get the exception.

    WebHost failed to process a request.
    Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/64828693
    Exception: System.ServiceModel.ServiceActivationException: The service '/MicrosoftDynamicsAXAif60/TestEmployeeRead/xppservice.svc' cannot be activated due to an exception during compilation. The exception message is: There is no endpoint behavior named 'clientEndpointBehavior'. (C:\Program Files\Microsoft Dynamics AX\60\AifWebServices\TestEmployeeRead\web.config line 51). ---> System.Configuration.ConfigurationErrorsException: There is no endpoint behavior named 'clientEndpointBehavior'. (C:\Program Files\Microsoft Dynamics AX\60\AifWebServices\TestEmployeeRead\web.config line 51)

    After creating an the clientEndpoinBehavior I get the following exception

    WebHost failed to process a request.
    Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/64828693
    Exception: System.ServiceModel.ServiceActivationException: The service '/MicrosoftDynamicsAXAif60/WebEmployeeRead/xppservice.svc' cannot be activated due to an exception during compilation. The exception message is: Value cannot be null.
    Parameter name: routerServiceEndpoint. ---> System.ArgumentNullException: Value cannot be null.
    Parameter name: routerServiceEndpoint

    Does anyone know how this can be resolved? 

    Thank you

  • Kazinova Profile Picture
    1,500 on at

    The SPN may also need to be set correctly.

  • Community Member Profile Picture
    on at

    I didn't see the answer anywhere on the net but here is my 2 bits on the subject.  AX 2012 seems to be very netTcp friendly.  If you don't specify endpoints and such on the integration port before you activate, AX will use a default configuration that includes netTcp settings for your service.  If you change your adapter to a netTcp adapter and activate the port, you won't have to mess with these errors.  If you want to use http adapter, IMHO I THINK you will need to configure the port using the configure button prior to activating it.   That last statement is a hunch on my part since I did not put any effort toward configuration of the HTTP adapter.  Knowing that, please correct me.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans