Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 934493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:00:37+00:00 2026-05-15T21:00:37+00:00

I need to reference a service that is a part of another project. I

  • 0

I need to reference a service that is a part of another project.
I have declared and implemented the contract of the service and then tried to
add a standard reference (right click ->Add Service reference, and added

http://localhost:8000/MyService?wsdl

The proxy has been generated and it should work at the first glance, however every time I try to run the program I got:

Could not find default endpoint
element that references the contract
“MyService.IMyContract” in the
ServiceModel client configuration
section. This might be because no
configuration file was found for your
application, or because no endpoint
element matching this contract could
be found in the client element.

Do you have any ideas how to solve the issue?
Here is a part of my config file (ServerModel section):

<client>
  <endpoint 
      address="http://localhost:8000/MyService" 
      binding="wsHttpBinding"
      bindingConfiguration="" 
      contract="MyService.IMyContract" name="" />
</client>

Any ideas?

Thank you in advance for the replies!

cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:00:38+00:00Added an answer on May 15, 2026 at 9:00 pm

    The error would indicate the config that’s being used doesn’t have the necessary info in it.

    If you have a web site, you need to make sure to put those config entries into the web.config of the web application.

    If you have a console, Winforms or WPF app, you need to put those config entries into the app.config of your main app.

    Something that happens every now and then is programmers having a class library which encapsulates the WCF calls, but they forget to copy the config entries from the class library’s app.config to the main app’s app.config or web.config. By default, .NET will not read the class library’s app.config at runtime, so having the settings there doesn’t do you any good.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have some 10 categories that I need to reference in a web
I have a WCF service that I need to call. When I go through
I know that Service can have a reference to Activity . Does the opposite
I need to create a wcf client to call a service that I have
I need a bit of guidance here. I have a WCF service that is
I have a Spring MVC and Resteasy based REST service that i need to
I need to connect to a web service that has wsse security and need
Okay, here is my problem. I have a Service that receives Push notifications. Now,
I have a service that is going to act as an internal clock as
I’m starting a multi project solution that will have more than one entry point,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.