?
Solved

Endpoint not found.

Posted on 2012-03-24
5
Medium Priority
?
1,495 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

862 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