Solved

Endpoint not found.

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

18 Experts available now in Live!

Get 1:1 Help Now