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

  • Home
  • SEARCH
  • 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 8911543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:58:22+00:00 2026-06-15T03:58:22+00:00

I have a C# library which needs to reference 2 Web Services, one when

  • 0

I have a C# library which needs to reference 2 Web Services, one when the site is in “Stage” and then point to another when in “Production”. How can I set up different URLs for the web service? I noticed that the URL is hard coded in the .disco file. Is there way to do this dynamical set this? I also tried this solution:

App.Config Transformation for projects which are not Web Projects in Visual Studio 2010?

But for some reason when I compile my web site, the library is compiled but the app config does not get copied to the bin folder. So I am assuming my Web Service URLS are hard coded in the library dll. Any help is greatly appreciated.

Thanks

  • 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-15T03:58:23+00:00Added an answer on June 15, 2026 at 3:58 am

    a little bit more info may be needed, but here’s what I can tell you early on:

    you can always set your server (host) to “offer” two different endpoints for the same exact service, that is configurable from visual studio with your WCF configuration option.

    If you mean to “point” to different urls that have the same web service definition, then you just need to instantiate the proxy that you created when adding the web reference, and in the constructor you provide the other url you are using in production.

    Your web config usually is copied to your bin folder, maybe you should check your deployment installation process. or try to add it yourself.

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

Sidebar

Related Questions

If i have a library which is compiled in .NET 4 and reference it
I have to import library which is called functions.sage . How can I do
I have a solution in VS 2008 which has one web project and 3
I have standard class library infrastructure assembly which i reference in my main application.
I have multiple SharePoint web parts that needs to access Reporting service 2008 which
I need suggestion about YAMI library . I have a system which receives Json
I have this library called BASS which is an audio library which I'm going
I have a library which has a basic class which is used extensively by
I have a .dll library which exports a function in the following format: _Java_folder1_folder2_folder3_JavaClassName_javamethodname@16
I have a c-library which I use in gcc. The library has the extension

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.