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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:13:27+00:00 2026-05-25T13:13:27+00:00

We want our web applications separated from our WCF web services. We don’t want

  • 0

We want our web applications separated from our WCF web services. We don’t want the web app to know if it’s hitting any WCF services. Therefore we don’t want any WCF web service references defined in the web app assembly.

What I’m trying to do is create a separate WCF wrapper assembly that would contain the WCF service reference and the necessary configuration in the app.config file. Method in the WCF wrapper would be called from the Web app. When I create the WCF service reference and configuration in the Web App assembly it works fine. When I put the WCF web reference and config file in WCF wrapper assembly it complains about not finding the endpoint. It doesn’t look like it’s finding the app.config file in the wrapper assembly.

So in summary I want a structure as follows:

Web app --> WCF wrapper (with WCF service references and config) --> BAL layer --> etc

Config file (web.config if in web app assembly, app.config if in WCF wrapper assembly):

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IEmailValidator" closeTimeout="00:01:00"
         openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
         allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
         maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
         messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
         useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
           maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
             realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:8080/" binding="basicHttpBinding"
       bindingConfiguration="BasicHttpBinding_IEmailValidator" contract="EmailProxy.IEmailValidator"
       name="BasicHttpBinding_IEmailValidator" />
    </client>
  </system.serviceModel>

Do I have to create the WCF service references in the web app assembly or can I do it in the WCF wrapper?

Error Message:

Could not find default endpoint element that references contract
‘EmailProxy.IEmailValidator’ 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.

  • 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-25T13:13:27+00:00Added an answer on May 25, 2026 at 1:13 pm

    This goes back to the old truth that the .NET configuration system doesn’t support config files for class libraries – it expects the config for a class library to be in the host application that uses the class library – e.g. in your web application.

    It’s really not a WCF problem – it’s a general .NET design decision that the .NET team made. A class library might have an app.config file in the solution, and that might even be compiled into a myclasslibrary.dll.config – but that file is not inspected and parsed by the .NET configuration system.

    Therefore, in your case, your web app cannot find the config and thus cannot configure any endpoints and that’s why it fails.

    You basically have three major options:

    • live with this restriction and put your WCF config into the web app’s web.config
    • find an alternate way to configure your WCF service library, e.g. from some other source, like a database
    • invest a lot of effort into making your WCF service library actually look into and pick up your class library’s separate config file
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use modal pop-up windows in our web app in Ruby on
Background At my work we are moving from desktop applications to web applications. Our
We want to split our large asp.net mvc web application into multiple Visual Studio
I want to add a mailto link on our web page. I want to
I'm introducing Subversion into our web shop. I want to want the checked in
I want our app to show the online help page (so it's always up
I'm designing the intranet web application for our company. One of the app. requirements
We use Intraweb for our Web Applications and also have been using ReportBuilder for
We are converting some of our web applications that used to run under forms
We have Flex applications that connect to our ASP.NET 3.5 Web Applications and usually

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.