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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:18:03+00:00 2026-05-15T13:18:03+00:00

I have a website project which includes several assemblies which are built separately. One

  • 0

I have a website project which includes several assemblies which are built separately. One of the assemblies is the EntityModel, which also has an app.config file with the connection string to the database.

The website project then brings that DLL into its own project. When I build the website assembly, I just copy the website folder to the server. The web.config connection string has a different database name on the live server, so I change that on the server and works fine.

However, the assembly which is included into the website project has already been built with a connection string that refers to my local DB name, not the production DB name.

What I would like to know is how do I ensure the assembly is using the correct DB connecting string in the app.config as it won’t have ‘visibility’ of the changed DB name in the web.config.

I might be wrong but it seems the connection will be baked into the assembly which I don’t want.

  • 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-15T13:18:04+00:00Added an answer on May 15, 2026 at 1:18 pm

    The app.config of the data assembly will be ignored, and the web.config will be used. Config settings come from the executing assembly.

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

Sidebar

Related Questions

I have an asp.net mvc website which of course has a web.config file. I
I have a website project (C#/ASP.NET) opened in Visual Studio 11 (beta) which works
I have a solution which has multiple output projects (a website, and admin tool,
I have a website project that I want to build using CruiseControl.net. On one
I have a project (private, ASP.net website, password protected with https) where one of
I have a Website project that I'm trying to debug using Fiddler. Fiddler doesn't
We have a ASP.NET website project. In the past, we had been using asmx
i have a job portal website project in that i need to signup user
we have just started using a git account of our Django website project so
I have a project to setup an anonymous feedback form to our website. I

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.