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 8620391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:34:08+00:00 2026-06-12T06:34:08+00:00

I have: WCF Service [Application 1] Logic communicating with this service [Project1 Application2] Web

  • 0

I have:

  1. WCF Service [Application 1]
  2. Logic communicating with this service [Project1 Application2]
  3. Web Page using this logic [Project2 Application2]

In Logic project I added service reference to Service.
In WebPage I added project reference to Logic.

Now endpoints to Service are definied in Logic project so I cannot connect to Service from WebPage.

I know that I solution is to copy part of Logic config to WebPage config, but I don’t think it’s a good solution.

I would like to have Logic as a black box. I don’t know if I wouldn’t change it to another service, maybe something different, so I don’t want to WebPage “know” how Logic works.

Is there any better solution?
Something I could do in Logic project which would make WebPage know how to connect to Service?

I’m getting exception:
Could not find default endpoint element that references contract

  • 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-06-12T06:34:10+00:00Added an answer on June 12, 2026 at 6:34 am

    The other option is to configure Logic by placing the endpoints in the code instead of the configuration file. When you create your web service client, use this overload, which takes a Binding and EndpointAddress as parameters. In the code of your Logic class, just supply those parameters in the code instead of letting it read them automatically from the config file.

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

Sidebar

Related Questions

I have developed a Web service using WCF Service Application. This service application is
My application have the following architecture: Web service layer (wcf services) Business logic layer
I have a WCF service application and in this app I am doing calls
Greetings, I have a wcf service that exposes functionality to my wpf application. This
I have a web application that communicates to a WCF service through a WCF
I have an ASP.net application with a WCF service like this: [OperationContract] [WebGet] public
I have a WCF service hosted at IIS7 web application. It's created by a
I have a WCF service application with most basic settings working properly on my
I have a selfhosted WCF service application which I want to deploy by a
I have a WCF service and a Silverlight application that work just fine when

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.