Solved

Endpoint not found.

Posted on 2012-03-24
5
1,481 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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