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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:46:31+00:00 2026-05-14T02:46:31+00:00

In the Setup Project I have 2 web.config files: web.config – used during the

  • 0

In the Setup Project I have 2 web.config files: web.config – used during the development and web_dist.config – the one that should be included into Setup Project.

I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config.

In the File System -> Web Application Folder I have added the Content Files from the project.
Also included the web_dist.config and mapped it to the web.config.

But this gives the warning:

WARNING: Two or more objects have the same target location ('[targetdir]\web.config')

And the actual config file included is web.config and not web_dist.config.

What would be the best option to include the web_dist.config (and named as web.config in the setup)?

Thanks,
Dmitriy.

  • 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-14T02:46:32+00:00Added an answer on May 14, 2026 at 2:46 am

    I was able workaround this by setting “Build Action” for the web.config to “None“.
    This way it doesn’t get included into the setup package.

    Then I just added another config file manually.

    Works like a charm for this particular situation.

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

Sidebar

Related Questions

I have a website project and would like to setup different web.config transformation files
I have a really simple ASP.NET web application and a web setup project that
I have an ASP.NET Web Application project that used to target ASP.NET 2.0. I
I have a web setup project that creates an MSI. After first installation, my
I have a web project that used to use Forms Authentication. I have new
I have a Web setup project. In the setup I have an input field
I have built a web setup project in VS2008 which installs my ASP.NET/Silverlight app
Hi I have a setup project in my application.Setup includes 5 files (a.txt,b.doc etc.)
I have a windows setup project that installs a service. All works well except
I have the following setup: ASP.net 3.5 Web Site Project C# Class Library with

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.