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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:54:05+00:00 2026-05-22T21:54:05+00:00

I have 2 projects, X and Y. Y calls a Web service and the

  • 0

I have 2 projects, X and Y. Y calls a Web service and the configuration is defined in Y’s app.config (its a DLL).

When X calls Y methods, I get the following exception:

 System.InvalidOperationException: Could not find default endpoint element that references contract 'xxxx.ServiceSoap' 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.

How can I include/import Y’s app.config into X’s web.config so it will have this configuration?

Thank you!

  • 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-22T21:54:05+00:00Added an answer on May 22, 2026 at 9:54 pm

    You can not include configuration files of one project into another.

    What you can do is make a new configuration file in X project (that has only the configuration for that web service) and then include that configuration file into your main web.config of X.

    eg.

    Lets say you make a new configuration file with name “Endponts.config”

    it looks like

    <endpoints>
    ......
    </endpoints>
    

    and then you can use this Endpoints.config file in your main web.config file in the following manner

    <system.web>
        ...
        <endpoints configSource="Endponts.config" />
        ...
      </system.web>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At present I have a TestNG project that calls a JBoss RESTEasy web service.
I have a VS2008 solution containing two projects, a web service (the actual work
I have a wpf C# application that calls a web service AddressValidationService. I know
I have an ASP.Net MVC3 project that calls a WCF service to get data.
I have one solution WCFSampleSolution and it has all my projects - Web Service,
I have a c# project that calls some functions from a c dll, the
I have two WIN32 DLL projects in the solution, main.dll should call a function
This is probably a basic question. I have two projects: A web application project,
We have a hybrid WCF and ASMX web service currently being used on a
I have a ASP.NET web service decorated with System.Web.Script.Services.ScriptService() so it can return json

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.