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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:42:37+00:00 2026-05-21T09:42:37+00:00

I have inherited a .NET 4 VS2010 solution consisting of a WinForms app and

  • 0

I have inherited a .NET 4 VS2010 solution consisting of a WinForms app and a web service. I don’t have access to a server that’s running a copy of the web service but I have to run, debug, upgrade and test the project that accesses the web service as well as the web service code.

Later, I also want to quickly switch between a deployed web service and the code in my local project

What’s the best strategy for changing the projects so I can make changes to both projects, test locally, deploy the web service then test against that? If I find issues, I want to switch back to “local” mode to debug.

Thanks team!

  • 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-21T09:42:38+00:00Added an answer on May 21, 2026 at 9:42 am

    The easiest is to host the service locally in visual studio and change the service url to switch between the production service and the local one. You can automatically switch between the services by checking for Debug and Release modes using #if and #else directives.

    You can also use the interface to provide a stub of the service. This will also make unit testing easier.

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

Sidebar

Related Questions

I have inherited a VB.net web app that I'm making some changes on. I'm
I have inherited a working VB.NET 2.0 web app that has several User Controls
I have inherited a reasonable sized ASP.net solution that has no automated tests. The
I have inherited a conventional three tier web app with ASP.net 2.0 for the
I'm using VS2010,C# to develop my ASP.NET web app. I have some a combo
I have inhherited a vs2010 c# web project (asp.net). It has a web reference
We have inherited a vb.net 2003 web project, it seems to reference another web
I've recently inherited a .Net Web App with a 4 layer setup. As per
I have inherited a large admin winforms application that shares a 'Common' library of
I have inherited some ASP.NET web code which I have made changes to. It

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.