Windows Vista Forums

Error: Could not find endpoint element...

  1. #1


    Alhambra-Eidos Kiquenet Guest

    Error: Could not find endpoint element...

    Hi misters, I'm a newbie to WCF and I am trying to run an application web
    that calls to a service WCF and I am having a bit of trouble with
    configuration. The client of service WCF is an application web.

    I finally got my service up and running and it is hosted on IIS.

    I get WDSL like this
    http://localhost:2121/TINSA.MaquinaE...rvice.svc?wsdl, and it's right.

    Aftwer I got my service up and running I proceeded to create my proxy
    classes with svcutil.exe

    svcutil.exe http://localhost:2121/TINSA.MaquinaE...rvice.svc?wsdl

    and that created the proxy class and another config file which I copied
    into application web (rename output.config to web.config).

    I created my client class and when I try to initialize the proxy I am
    getting the following error:

    Could not find endpoint element with name 'WSHttpBinding_ITareasEngine' and
    contract 'TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine' in the
    ServiceModel client configuration section. This might be because no
    configuration file was found for your application, or because no endpoint
    element matching this name could be found in the client element


    Config in client (Application web)

    <client>
    <!-- SERVICIO MAQUINA ESTADOS -->
    <endpoint address="http://localhost:2121/TINSA.MaquinaEstados/service.svc"
    binding="wsHttpBinding"
    bindingConfiguration="WSHttpBinding_ITareasEngine"
    contract="TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine"
    name="AgenteMaquinaEstados">
    <identity>
    <userPrincipalName value="xxxxx@grupo.zzz.sa" />
    </identity>
    </endpoint>
    </client>


    <!-- SERVICIO MAQUINA ESTADOS -->
    <binding name="WSHttpBinding_ITareasEngine"
    closeTimeout="00:01:00"
    openTimeout="00:01:00" receiveTimeout="00:10:00"
    sendTimeout="00:01:00"
    bypassProxyOnLocal="false" transactionFlow="false"
    hostNameComparisonMode="StrongWildcard"
    maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    messageEncoding="Text" textEncoding="utf-8"
    useDefaultWebProxy="true"
    allowCookies="false">
    <readerQuotas maxDepth="32"
    maxStringContentLength="8192" maxArrayLength="16384"
    maxBytesPerRead="4096" maxNameTableCharCount="16384"
    />
    <reliableSession ordered="true"
    inactivityTimeout="00:10:00" enabled="false" />
    <security mode="Message">
    <transport clientCredentialType="Windows"
    proxyCredentialType="None"
    realm="" />
    <message clientCredentialType="Windows"
    negotiateServiceCredential="true"
    algorithmSuite="Default"
    establishSecurityContext="true" />
    </security>
    </binding>



    Config for Service WCF

    <services>
    <service name="TINSA.WCF.MaquinaEstados.Adaptador.TareasEngine"
    behaviorConfiguration="TareasEngineBehavior">
    <endpoint address=""
    binding="wsHttpBinding"
    bindingConfiguration="TINSAConfiguracion"
    contract="TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine"
    />
    </service>
    </services>

    <bindings>
    <wsHttpBinding>

    <binding name="TINSAConfiguracion" maxReceivedMessageSize="100000000">
    <security mode="Message">
    <message clientCredentialType="Windows" />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>

    <behaviors>
    <serviceBehaviors>
    <behavior name="TareasEngineBehavior">
    <serviceThrottling maxConcurrentCalls="50"
    maxConcurrentSessions="50"
    maxConcurrentInstances="2147483647" />
    <serviceMetadata httpGetEnabled="true" />
    <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
    </serviceBehaviors>
    </behaviors>


    --
    http://www.alhambra-eidos.es/web2005/index.html
    www.kiquenet.net

      My System SpecsSystem Spec

  2. #2


    Dwight@QuickLearn Guest

    RE: Error: Could not find endpoint element...

    I'm not quite sure if I totally understand you but it sounds like you're
    copying the "client" config from your svcutil output, over your "Server"
    service config file. If this is what you're trying to do, then you need not
    overwrite it but merge the two together.

    -Dwightg@quicklearn

    "Alhambra-Eidos Kiquenet" wrote:

    > Hi misters, I'm a newbie to WCF and I am trying to run an application web
    > that calls to a service WCF and I am having a bit of trouble with
    > configuration. The client of service WCF is an application web.
    >
    > I finally got my service up and running and it is hosted on IIS.
    >
    > I get WDSL like this
    > http://localhost:2121/TINSA.MaquinaE...rvice.svc?wsdl, and it's right.
    >
    > Aftwer I got my service up and running I proceeded to create my proxy
    > classes with svcutil.exe
    >
    > svcutil.exe http://localhost:2121/TINSA.MaquinaE...rvice.svc?wsdl
    >
    > and that created the proxy class and another config file which I copied
    > into application web (rename output.config to web.config).
    >
    > I created my client class and when I try to initialize the proxy I am
    > getting the following error:
    >
    > Could not find endpoint element with name 'WSHttpBinding_ITareasEngine' and
    > contract 'TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine' in the
    > ServiceModel client configuration section. This might be because no
    > configuration file was found for your application, or because no endpoint
    > element matching this name could be found in the client element
    >
    >
    > Config in client (Application web)
    >
    > <client>
    > <!-- SERVICIO MAQUINA ESTADOS -->
    > <endpoint address="http://localhost:2121/TINSA.MaquinaEstados/service.svc"
    > binding="wsHttpBinding"
    > bindingConfiguration="WSHttpBinding_ITareasEngine"
    > contract="TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine"
    > name="AgenteMaquinaEstados">
    > <identity>
    > <userPrincipalName value="xxxxx@grupo.zzz.sa" />
    > </identity>
    > </endpoint>
    > </client>
    >
    >
    > <!-- SERVICIO MAQUINA ESTADOS -->
    > <binding name="WSHttpBinding_ITareasEngine"
    > closeTimeout="00:01:00"
    > openTimeout="00:01:00" receiveTimeout="00:10:00"
    > sendTimeout="00:01:00"
    > bypassProxyOnLocal="false" transactionFlow="false"
    > hostNameComparisonMode="StrongWildcard"
    > maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    > messageEncoding="Text" textEncoding="utf-8"
    > useDefaultWebProxy="true"
    > allowCookies="false">
    > <readerQuotas maxDepth="32"
    > maxStringContentLength="8192" maxArrayLength="16384"
    > maxBytesPerRead="4096" maxNameTableCharCount="16384"
    > />
    > <reliableSession ordered="true"
    > inactivityTimeout="00:10:00" enabled="false" />
    > <security mode="Message">
    > <transport clientCredentialType="Windows"
    > proxyCredentialType="None"
    > realm="" />
    > <message clientCredentialType="Windows"
    > negotiateServiceCredential="true"
    > algorithmSuite="Default"
    > establishSecurityContext="true" />
    > </security>
    > </binding>
    >
    >
    >
    > Config for Service WCF
    >
    > <services>
    > <service name="TINSA.WCF.MaquinaEstados.Adaptador.TareasEngine"
    > behaviorConfiguration="TareasEngineBehavior">
    > <endpoint address=""
    > binding="wsHttpBinding"
    > bindingConfiguration="TINSAConfiguracion"
    > contract="TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine"
    > />
    > </service>
    > </services>
    >
    > <bindings>
    > <wsHttpBinding>
    >
    > <binding name="TINSAConfiguracion" maxReceivedMessageSize="100000000">
    > <security mode="Message">
    > <message clientCredentialType="Windows" />
    > </security>
    > </binding>
    > </wsHttpBinding>
    > </bindings>
    >
    > <behaviors>
    > <serviceBehaviors>
    > <behavior name="TareasEngineBehavior">
    > <serviceThrottling maxConcurrentCalls="50"
    > maxConcurrentSessions="50"
    > maxConcurrentInstances="2147483647" />
    > <serviceMetadata httpGetEnabled="true" />
    > <serviceDebug includeExceptionDetailInFaults="true" />
    > </behavior>
    > </serviceBehaviors>
    > </behaviors>
    >
    >
    > --
    > http://www.alhambra-eidos.es/web2005/index.html
    > www.kiquenet.net
    >

      My System SpecsSystem Spec

  3. #3


    kfrost Guest

    RE: Error: Could not find endpoint element...

    The initial problem I see is the name of the binding you are using in your
    config file. The name in the config file is:
    <client>
    name="AgenteMaquinaEstados"
    </client>

    However your exception is looking for a name of
    'WSHttpBinding_ITareasEngine'

    Check your the line where you are initializing the proxy in code. It
    appears you are passing a value of 'WSHttpBinding_ITareasEngine' into the
    constructor and you should be passing in AgenteMaquinaEstados.

    That or you need to change the names of your bindings in your .config file.

    Your 2nd config file looks like it's probably correct.
    --
    kris@n-sv.com.<Remove This Before Emailing>

    Network & Software Integration
    www.n-sv.com

    "Helping put the pieces of your IT puzzle together"


    "Alhambra-Eidos Kiquenet" wrote:

    > Hi misters, I'm a newbie to WCF and I am trying to run an application web
    > that calls to a service WCF and I am having a bit of trouble with
    > configuration. The client of service WCF is an application web.
    >
    > I finally got my service up and running and it is hosted on IIS.
    >
    > I get WDSL like this
    > http://localhost:2121/TINSA.MaquinaE...rvice.svc?wsdl, and it's right.
    >
    > Aftwer I got my service up and running I proceeded to create my proxy
    > classes with svcutil.exe
    >
    > svcutil.exe http://localhost:2121/TINSA.MaquinaE...rvice.svc?wsdl
    >
    > and that created the proxy class and another config file which I copied
    > into application web (rename output.config to web.config).
    >
    > I created my client class and when I try to initialize the proxy I am
    > getting the following error:
    >
    > Could not find endpoint element with name 'WSHttpBinding_ITareasEngine' and
    > contract 'TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine' in the
    > ServiceModel client configuration section. This might be because no
    > configuration file was found for your application, or because no endpoint
    > element matching this name could be found in the client element
    >
    >
    > Config in client (Application web)
    >
    > <client>
    > <!-- SERVICIO MAQUINA ESTADOS -->
    > <endpoint address="http://localhost:2121/TINSA.MaquinaEstados/service.svc"
    > binding="wsHttpBinding"
    > bindingConfiguration="WSHttpBinding_ITareasEngine"
    > contract="TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine"
    > name="AgenteMaquinaEstados">
    > <identity>
    > <userPrincipalName value="xxxxx@grupo.zzz.sa" />
    > </identity>
    > </endpoint>
    > </client>
    >
    >
    > <!-- SERVICIO MAQUINA ESTADOS -->
    > <binding name="WSHttpBinding_ITareasEngine"
    > closeTimeout="00:01:00"
    > openTimeout="00:01:00" receiveTimeout="00:10:00"
    > sendTimeout="00:01:00"
    > bypassProxyOnLocal="false" transactionFlow="false"
    > hostNameComparisonMode="StrongWildcard"
    > maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
    > messageEncoding="Text" textEncoding="utf-8"
    > useDefaultWebProxy="true"
    > allowCookies="false">
    > <readerQuotas maxDepth="32"
    > maxStringContentLength="8192" maxArrayLength="16384"
    > maxBytesPerRead="4096" maxNameTableCharCount="16384"
    > />
    > <reliableSession ordered="true"
    > inactivityTimeout="00:10:00" enabled="false" />
    > <security mode="Message">
    > <transport clientCredentialType="Windows"
    > proxyCredentialType="None"
    > realm="" />
    > <message clientCredentialType="Windows"
    > negotiateServiceCredential="true"
    > algorithmSuite="Default"
    > establishSecurityContext="true" />
    > </security>
    > </binding>
    >
    >
    >
    > Config for Service WCF
    >
    > <services>
    > <service name="TINSA.WCF.MaquinaEstados.Adaptador.TareasEngine"
    > behaviorConfiguration="TareasEngineBehavior">
    > <endpoint address=""
    > binding="wsHttpBinding"
    > bindingConfiguration="TINSAConfiguracion"
    > contract="TINSA.WCF.MaquinaEstados.Contrato.ITareasEngine"
    > />
    > </service>
    > </services>
    >
    > <bindings>
    > <wsHttpBinding>
    >
    > <binding name="TINSAConfiguracion" maxReceivedMessageSize="100000000">
    > <security mode="Message">
    > <message clientCredentialType="Windows" />
    > </security>
    > </binding>
    > </wsHttpBinding>
    > </bindings>
    >
    > <behaviors>
    > <serviceBehaviors>
    > <behavior name="TareasEngineBehavior">
    > <serviceThrottling maxConcurrentCalls="50"
    > maxConcurrentSessions="50"
    > maxConcurrentInstances="2147483647" />
    > <serviceMetadata httpGetEnabled="true" />
    > <serviceDebug includeExceptionDetailInFaults="true" />
    > </behavior>
    > </serviceBehaviors>
    > </behaviors>
    >
    >
    > --
    > http://www.alhambra-eidos.es/web2005/index.html
    > www.kiquenet.net
    >

      My System SpecsSystem Spec

Error: Could not find endpoint element...

Similar Threads
Thread Forum
Re: error converting object to datetime array element from sql table
# append '' to the type name in the array declaration ]$dt_array = @() # append the DateTime value from each column with the '+=' operator # to...
PowerShell
endpoint error when wrapping WCF service with asp.net web service(ASMX) only in IIS.
hello, I have a asp.net web service (ASMX) I am hosting thru IIS. Its web methods make requests to a WCF service I have running remotely via...
Indigo
xmlsscript: Error: XML document must have a top level element Li
xmlsscript: Error: XML document must have a top level element Line:0 (sometimes line 7) Could someone please explain to me how to determine...
Vista account administration
ChannelFactory can't find EndPoint
factory = new ChannelFactory<IIdolPTLoad>("Visible.Services.IdolPTLoad"); I'm making the above call to generate a ChannelFactory and it's...
Indigo
Find a named element
Hi folks, I need some tips. I want to get a named element, which is within another element. If I would have an Element, that derives from...
Avalon
The story board can't find the element, why?
The following style generates an exception System.InvalidOperationException: 'Arrow' name cannot be found in the name scope of...
Avalon
IP EndPoint of the service's consumer.
Hi, I need to persist the IP endpoint of the caller of my wcf service. I am converting a custom library who was sending/receiving xml...
Indigo