Solved

Endpoint not found.

Posted on 2012-03-24
5
1,475 Views
Last Modified: 2012-05-09
Hello,

I am trying to run the sample of WCF service provided by Microsoft.
Following is the sample that I am trying to run.
WF_WCF_Samples\WCF\Basic\Ajax\XmlAjaxService\CS

I also followed all pre-steps that are needed to be configured.

However when I try to run service at URL, I get following error.
http://localhost/ServiceModelSamples/service.svc

Error says.
"Endpoint not found."

There is not much details that is being displayed in Error, so it is very hard to detect error.

The web.config that comes with sample, has only following section added to it.

  <!-- WCF configuration -->
  <system.serviceModel>
    <standardEndpoints>
      <webHttpEndpoint>
        <!-- Use this element to configure the endpoint -->
        <standardEndpoint name="http://128.248.12.29/ServiceModelSamples/service.svc" />
      </webHttpEndpoint>
    </standardEndpoints>
  </system.serviceModel>

Any suggestions on how to resolve this error.

Thanks,
Bhavin
0
Comment
Question by:mauneeld
  • 4
5 Comments
 
LVL 8

Expert Comment

by:Amit Khilnaney
ID: 37761428
"http://128.248.12.29/ServiceModelSamples/service.svc"

Change the ip address to 127.0.0.1 or localhost and make sure the path is correct, try copying the text file in the same location and reach it through browser. see if it opens,.. i.e. reachable.
0
 

Author Comment

by:mauneeld
ID: 37761630
I have tried localhost as well. It gives same error.


Bhavin
0
 

Author Comment

by:mauneeld
ID: 37761720
I also tried using the wcf test client utility that comes within visual studio.
It gives following error.

Error:
Cannot obtain Metadata from http://localhost/ServiceModelSamples/service.svc If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.  

For help enabling metadata publishing, please refer to the MSDN documentation at http://go.microsoft.com/fwlink/?LinkId=65455.WS-Metadata Exchange Error    

URI: http://localhost/ServiceModelSamples/service.svc    Metadata contains a reference that cannot be resolved: 'http://localhost/ServiceModelSamples/service.svc'.  
There was no endpoint listening at http://localhost/ServiceModelSamples/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.    The remote server returned an error: (404) Not Found.HTTP GET Error    URI: http://localhost/ServiceModelSamples/service.svc    There was an error downloading 'http://localhost/ServiceModelSamples/service.svc'.    

The request failed with HTTP status 404: Not Found.
0
 

Accepted Solution

by:
mauneeld earned 0 total points
ID: 37931329
No further response. So need to close it.
0
 

Author Closing Comment

by:mauneeld
ID: 37946014
No one responded after I posted my last comments.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question