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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:45:05+00:00 2026-05-22T00:45:05+00:00

When I create a WCF Service Library, an app.config is generated for me where

  • 0

When I create a WCF Service Library, an app.config is generated for me where I put the end points. Then if I create a website and reference the WCF Service Library, it creates a web.config file where I can specify the end points. Do I put the end points in the app.config or web.config or do they have to be in both?

  • 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-22T00:45:06+00:00Added an answer on May 22, 2026 at 12:45 am

    Essentially, it’s Web.config if you’re hosting the services in IIS, app.config if you’re self hosting. So it sounds like you want to put them in the web.config.

    Full details can be found here where MSDN says:

    When configuring a service in Visual
    Studio, use either a Web.config file
    or an App.config file to specify the
    settings. The choice of the
    configuration file name is determined
    by the hosting environment you choose
    for the service. If you are using IIS
    to host your service, use a Web.config

    file. If you are using any other
    hosting environment, use an App.config

    file.

    In Visual Studio, the file named
    App.config is used to create the final
    configuration file. The final name
    actually used for the configuration
    depends on the assembly name. For
    example, an assembly named
    “Cohowinery.exe” has a final
    configuration file name of
    “Cohowinery.exe.config”. However, you
    only need to modify the App.config
    file. Changes made to that file are
    automatically made to the final
    application configuration file at
    compile time.

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

Sidebar

Related Questions

Is it possible to create a WCF service (web service) that only accepts a
I have a silverlight library which I have added a wcf service reference. Call
I have WCF service library with this config: <basicHttpBinding> <binding name=httpLargeMessageStream maxReceivedMessageSize=2147483647 messageEncoding=Mtom transferMode=Streamed
I have create a web service using WCF and I want to display, let's
I have three projects: a UI (web), a WCF service, and a type library
I have created a simple wcf service which used the WCF Service Library template.
I am trying create a WCF service that leverages the WPF MediaPlayer on the
Hi I want to create a WCF service that have login method, which is
I'm attempting to create my first WCF service. I've created the service and now
I have a WCF service that works ok if I create the service without

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.