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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:11:47+00:00 2026-05-24T21:11:47+00:00

I am using VS2010, and I understand that when I publish a web application,

  • 0

I am using VS2010, and I understand that when I publish a web application, the Web.config I am using is transformed based on the build settings.

i.e. When I choose Debug, it uses my development SQL server, and when I choose Release, it uses my production SQL server.

What I want to know is: Can I, using only the built in Visual Studio Development Server, select “Release” from the Configuration drop-down, and then the green “Continue” arrow (F5), and run using the transformed Web.config settings?

I would be quite happy having another file such as “generic.config” (or better: “Web.Generic.config”), which holds the master code if necessary.

  • 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-24T21:11:48+00:00Added an answer on May 24, 2026 at 9:11 pm

    I don’t believe there’s a simple way to do this. I would have thought it’s unusual to want to run code locally against a production database, but maybe you’re not in Enterprise Land which is probably what this functionality was designed for.

    An alternative would be to publish your site to a server, and then use Remote Debugging to step into the code.

    The plain web.config is your local and generic settings combined. The transforms tweak the generic data to match the environment you’re deploying to.

    There’s a handy site if you just want to quickly test the results of a web.config transform: http://webconfigtransformationtester.apphb.com

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

Sidebar

Related Questions

I am using VS2010 C#.NET 3.5 and application settings (the Settings.settings file). What I
I have a multi-threaded application build in C# using VS2010 Professional. It's quite a
I'm using MVC2 with VS2010 I have a view that has two partial views
Is anyone using ClickOnce with VS2010? I’m getting the following on publish, when the
I have a WPF application running with VS2010 .Net3.5 using Nhibernate with FluentNHibernate +
I'm using VS2010/C# to develop my asp.net web app (a web telemetry site), my
Using VS2010 i have a test that calls a method which runs a command
Using VS2010, I created a Win32 C++ console application called TfsBuildTestTarget. This is just
I run an in-house application, programmed with visual studio 2008, that uses SQL Server
I'm using VS2010 Beta 2 to debug some multi-threaded code. Love parallel stacks, etc.

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.