Solved

Endpoint not found.

Posted on 2012-03-24
5
1,455 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Binding a check box in an Asp.net DataGrid 4 40
c# regex: extract & replace text between braces 6 45
Response.Redirect Open new Form/tab/page? 5 31
Problem to page 4 74
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now