.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

EndpointNotFoundException - No endpoint listening

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :WCF
Hi all: I created and hosted a test WCF service on my development server.  I beleive IIS is configured properly because I can get to the IIS page from any browser off the network.  When I build my simple client application, I can successfully add the service reference, however when I execute the function, I get the following error: There was no endpoint listening at http://[domain name]/TestService2/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. Unfortuantely, I am not using a normal domain name, but an IP address only:  http://##.##.##.##/TestService2/Service1.svc below is a portion of my webconfig:  <system.serviceModel>   <services>    <service name="WcfService1.Service1" behaviorConfiguration="WcfService1.Service1Behavior">     <endpoint address="" binding="wsHttpBinding" contract="WcfService1.IService1">      <identity>       <dns value="" />      </identity>     </endpoint>     <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExch

View Complete Post

More Related Resource Links

System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at ......



I have

1 - WCF Client machine

2 - ISA Server machine

3 - WCF Services machine

I need to call the WCF service which is behind the ISA firewall server. I have following WCF Service configuration..


    <binding name="TestBinding">
       <transport proxyCredentialType="Windows" />

EndPointNotFoundException was caught: "There was no endpoint listening at http://xxxx/xxx/Services/M


When I using a windows service call WCF service, exception happened.

There was no endpoint listening at http://xxxx/xxx/Services/MyService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

I have tried http://xxxx/xxx/Services/MyService.svc from url and it is shows its WSDL.

The WCF service in another domain, local machine who invoke web service is Win7, and service is win8.

Following is my configuration:


      <binding name="BasicHttpBinding_IFqlService" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" receiveTimeout="00:05:00" sendTimeout="00:05:00" closeTimeout="00:05:00"> 
      <security mode="TransportCredentialOnly"> 
        <transport clientCredentialType="Windows">
          <extendedProtectionPolicy policyEnforcement="Never" />       
      <readerQuotas maxArrayLength="2147483647"/>      
      <binding n

There was no endpoint listening at that could accept the message. T


Hi Experts,

I getting the error which specified in the title.

My Application Details:

I developed a VSTO Word 2007 add-in application which consumes WCF web service and render report in word document.

I deployed my VSTO Word 2007 add-in application using Click Once  technology.

WCF Service is hosted in IIS7 my IIS7 server is configured in a load balancer environment.

This application was released to production and running successfully for all clients as of.

But one of my new client is facing problem and getting the following error "There was no endpoint listening at <http://app.domain.com/api.svc.> that could accept the message. This is often caused by an incorrect address or SOAP action. "

This issue is not coming for any other clients except this new client.


This is a urgent requirement and need to fix ASAP, experts please help me 


Thanks in advance,


There was no endpoint listening at ... when trying to reference an WCF service?




Help pls, I’m trying to add a service reference to a WCF service hosted on a server.

This is the url I’m using to try and add the service reference

(when I type this url into internet explorer the xml comes through fine)


This is the configuration file


There was no endpoint listening at http://localhost/Service.svc that could accept the message. This


Hello Firends,

I have configured wcf service on my loal machine's IIS and it's running fine when I bowse .svc file.

But when I am running local web application after ading local wcf service's  reference to web application, it is showing following error message,even though affter adding endpoint correclty.

"There was no endpoint listening at http://localhost/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."

Can anybody please tell me, how can I solve this issue?

Thanks and regards,


Setting endpoint address results in "There was no endpoint listening at..."



I have two environments that are the same (.NET 4.0/IIS 7) except for the operating system (2008 vs 2008 R2 I believe), but one is not behaving correctly.  ServiceModelReg was executed in both environments and running the repair option informed us that everything was OK.  Also, endpoints using the webHttpBinding (REST improvements) have the same problem.

Once the endpoint address is set, communication no longer works with that endpoint:


<endpoint address="foo" binding="basicHttpBinding" contract="IService" />


There was no endpoint listening at http://server/service.svc/foo that could accept the message. This is often caused by an inc

An endpoint configuration section for contract 'xxx' could not be loaded because more than one end



I'm trying to test calling a webservice, I've found several free ones on http://webserviceshare.com, but none of them work for me.  Some of them give example calling code in C# which I've translated to VB.NET, they're typically just two to four lines, I don't think I've translated them incorrectly.

On that I've tried is US Zip Validator.  I added a Service Reference to http://www.webservicemart.com/uszip.asmx?WSDL, called ZipService.

I then call it like so:

            Dim myZipService As ZipService.USZipSoapClient = New ZipService.USZipSoapClient()
            Dim myCity As String = myZipService.ValidateZip("27707")

I get the following error on the first line of code:

"An endpoint configuration section for contract 'ZipService.USZipSoap' could not be loaded because more than one endpoint configuration for that contract was found. Please indicate the preferred endpoint configuration section by name."

A page with information on this web service (including C# source code) is at:


Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap



I created 2 projects in my solution:

  1. Classic asp.net web service (asmx)
  2. Class library project which references service
  3. web site project which references class library project
  4. Windows app project which references service.

Both projects were created in 3.5 framework and in Visual Studio 2008 Beta 2.

I added web service reference to Class library project. When it asked for namespace I typed "CurrencyProxy". Projects build ok, but when I run web app, Class library throws an error: Could not find default endpoint element that references contract 'CurrencyProxy.CurrencyServiceSoap' 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 contract could be found in the client element.

I believe it has something to do with app.config in Class library project. Here is part from app.config:

<binding name="CurrencyServiceSoap" closeTimeout=

WCF EndPoint Tracking


How can i check that which Endpoint is calling WCF Service.

How to add default endpoint to ServiceHost for metadata?

Hi there, I was looking into default endpoints and they seem nice. But how do I add such an endpoint for MetadataExchange? I thought it'd be something like the following pasted code, but it doesn't work. Get all sorts of errors, like no address set or "IMetadataExchange isn't known contract, add behavior". Now I do now how to add the correct behavior and such, but I thought the default endpoint could do this? Type serviceType = typeof(EmailValidator); Uri serviceUri = new Uri("http://localhost:8080/"); ServiceHost host = new ServiceHost(serviceType, serviceUri); host.AddDefaultEndpoints(); host.AddServiceEndpoint(new ServiceMetadataEndpoint()); host.Open();Dennis van der Stelt http://bloggingabout.net/blogs/dennis/ http://twitter.com/dvdstelt/

EndPoint != EndPoint (?)

One question: why does it never return true? (Look at botom of image, addresses are the same!)

The service cannot be started. This service has no endpoint defined....But it has!?!

Hi Foks,I'm following this tutorial on how to create RESTful services in WCF:http://www.codemeit.com/wcf/wcf-restful-pox-json-and-soap-coexist.htmlI would like to test the created service using the WCF Default Test Client, but when I run the application (F5) the service does not start and I get this message:"The service cannot be started. This service has no endpoint defined. Please add at least one endpoint for the service in config file and try again."However I do have endpoints defined for this service..I also have two other services running in the same application, which work fine:This is the relevant portion of my app.config:<behaviors>              <serviceBehaviors>                        <behavior name="WCF_Lib_Default.Service1Behavior">                   <serviceMetadata httpGetEnabled="True"/>                   <serviceDebug includeExceptionDetailInFaults="False" />             &nbs

Listening to customers: A simpler SO-Aware installer

Simplicity and the ability to listen to customers are some of the principles behind SO-Aware and Tellago Studios for that matter. Building sophisticated software that is still simple and intuitive from the user/operator perspective is one of those fundamental missing links in enterprise software. The ability of incorporating valuable customer feedback into your product quickly is one of those things that everybody says they do but only a handful of companies truly believe on. Having a team that is...(read more)

Can I write a wcf endpoint to communicate with JSON from Jquery on page?

Hi Guys,I need to be able to expose information to a page, and I need to write the information in xml on my webserver which will be dynamically created from the database. I need to use json to pass the data from the screen back to the server two way communication xms back and forth. Is it actually any good using a wcf endpoint to serve the json back to the page and use query with wcf? Is this possible?Or is it easier to use standard pages .aspx and just do a call to a url and get the json with jquery....We will probably want to send this information to other locations at some point in the future too....Cheers,Pete

Error when creating a net.tcp endpoint in wcf

I am trying to create a simple wcf service that has a net.tcp endpoint.  My OS is Vista and I am hosting the service in IIS 7.  I have set my default website binding for net.tcp to "9200:*" and added net.Tcp to my Enabled Protocols in my website hosting the service and the default website.  Here is my Config Values:   <system.serviceModel>     <services>       <service name="FirstWcfService.Service" behaviorConfiguration="ServiceBehavior">         <!-- Service Endpoints -->         <endpoint address="" binding="netTcpBinding" contract="FirstWcfService.IService"             bindingConfiguration="tcpbinding"/>         <endpoint address="mextcp" binding="mexTcpBinding" contract="IMetadataExchange"/>         <endpoint address="" binding="wsHttpBinding" contract="FirstWcfService.IService"             />         <endpoint address="mexhttp" binding="mexHttpBinding" contract="IMetadataExchange"/>       </service>     </services>     <behaviors>       <serviceBehaviors>         <behavior name="ServiceBehavior">           <!-- To receive exception details in faults for debugging purposes,                set the value below to true.  Set to false befor

How to set and map a Method in the Service file with endpoint elements and binding elements

Hi all, I have created a service file like OSService.svc in that i have two methods like one is FileUpload and FileDownload for e.g :- [WebInvoke(UriTemplate = "/fileupload/{fileName}" , Method = "POST" )]         [OperationContract]         void FileUpload(string fileName, Stream fileContents); same as Filedownload also. People you may know these methods are inside the interface of service file what you are using i'e i have created a interface as IOSService.cs. So, what i need now is i want to write separate endpoint for FileUpload and Filedownload.Because i want to set separate value for receiveTimeout  and openTimeout for the Fileupload and FileDownload process in binding section in the web.config file itself. The below code was i'm using right now but still i'm not able to the set separate value of endpoint elements in the bindings. EndPoint Section:- <endpoint name = "endPoint1"  address  = "localhost:8000/OSService.svc/" bindingConfiguration = "TransactionalTCP"   binding  = "netTcpBinding"          contract = "IOSService"/> Binding Section:-  <binding name = "TransactionalTCP"  transactionFlow = "true"   /&

Endpoint not found Exception

Hi,    I Have created Services in WCF application and hosted in windowservice application. Application has build succesfully. And I have installed the .exe file through command prompt. But the problem is when proxy object call's from client side it throws following exception.   Could not connect to net.tcp://localhost:8073/Service1/. The connection attempt lasted for a time span of 00:00:00.9218750. TCP error code 10061: No connection could be made because the target machine actively refused it endpoint, base address should be configured in app.config file. Help me anybody.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend