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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:59:57+00:00 2026-05-12T17:59:57+00:00

We have a series of web services that live in different environments (dev/qa/staging/production) that

  • 0

We have a series of web services that live in different environments (dev/qa/staging/production) that are accessed from a web application, a web site, and other services. There are a few different service areas as well. So for production, we have services on four different boxes.

We conquered the db connection string issue by checking the hostname in global.asax and setting some application wide settings based on that hostname. There is a config.xml that is in source control that list the various hostnames and what settings they should get.

However, we haven’t found an elegant solution for web services. What we have done so far is add references to all the environments to the projects and add several using statements to the files that use the services. When we checkout the project, we uncomment the appropriate using statement for the environment we’re in.

It looks something like this:

// Development
// using com.tracking-services.dev
// using com.upload-services.dev

// QA
// using com.tracking-services.qa
// using com.upload-services.qa

// Production
// using com.tracking-services.www
// using com.upload-services.www

Obviously as we use web services more and more this technique will get more and more burdensome.

I have considered putting the namespaces into web.config.dev, web.config.qa, etc and swapping them out on application start in global.asax. I don’t think that will work because by the time global.asax is run the compilation is already done and the web.config changes won’t have much effect.

Since the “best practices” include using web services for data access, I’m hoping this is not a unique problem and someone has already come up with a solution.

Or are we going about this whole thing wrong?

Edit:
These are asmx web services. There is no url referenced in the web.config that I can find.

  • 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-12T17:59:57+00:00Added an answer on May 12, 2026 at 5:59 pm

    Make one reference and use configuration to switch the target urls as appropriate. No reason to have separate proxies at all.

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

Sidebar

Related Questions

I have a series of divs that slide down using -webkit-transform from a negative
I have web site which serves web services (a mixture of .asmx and WCF)
Some existing web services I consume have methods that look something like this: List<Employee>
I have a site that host more then 60 services. With the simplified version
I have a series of times that are coming to me as strings from
I have an Web Service that generates different kinds of charts. The charts are
I have a couple of Web Application/Web Projects created with ASP .NET 4.0 that
I have a series of svc files within a web application, they all worked
I have a web service that serves widgets. It is hosted on a server
I have a series of urls in a web doc, something like this: <a

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.