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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:26:02+00:00 2026-05-18T11:26:02+00:00

I have a Windows application developed using Visual Studio 2008 (C#). It has a

  • 0

I have a Windows application developed using Visual Studio 2008 (C#).
It has a app.config file, where various configuration related information are kept. After creating an installer for the project and installing it, there are no app.config file being copied to the installed directory. However, the functionalities that rely on settings in this file seem to work.

Now one of these settings is a database connection string, which obviously needs changing when installed in a different PC. My question is, how to have the app.config file available with the Setup file so that it can be configured later?

  • 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-18T11:26:03+00:00Added an answer on May 18, 2026 at 11:26 am

    The app.config is copied/renamed <assembly name>.config as part of the compilation process, and placed in the bin directory. If you’re using a Visual Studio Installer project (blech!), then it should have picked it up also and included it in the installer, IIRC.

    (In response to your comment to both answers)

    You can’t keep using it as “app.config”. The .NET config system searches for the configuration file whose name is the same as the entry assembly. If you renamed the file back to “app.config”, then the configuration classes would stop working.

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

Sidebar

Related Questions

I have to develop Windows C# application, using Visual Studio 2008. It have dynamical
I have an application developed in C++ in Visual Studio 2003 (Windows Forms application).
Visual Studio C# 2008 Windows XP 32 bit I have developed a windows project
I have developed a Windows service along with a setup project using Visual Studio
I have created a setup project for a Windows Application developed using Visual Stduio
I have an ATL/WTL project developed using Visual Studio 2008 and up until now
Visual Studio 2005 I have developed an application using C#. I have created an
VS 2008 I have developed a device application that runs on windows mobile 5.
Consider i have a window Application,developed in Visual Studio 2005, having a button. I
I am working on windows forms application using c#.net. i have developed an application(3-tier)

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.