Using app.config

csharp Greece
  • 12 years ago
    I am using C# Express edition. I have created a simple solution that is made up of 2 projects, a UI (user interface) project and a DAL (data access layer) project. Both projects have their own config files, the UI config contains things like date formats, display preferences, etc. while the DAL config contains things like DB connection strings, etc. The problem comes in here. The UI references the DAL project (a class library) and when I compile the solution the DAL's config file is unavailable. It is however available in the DAL bin/release(debug) folder but not in the UI bin bin/release(debug) folder. If the referenced DAL.dll is placed in the UI bin/release(debug) folder then shouldn't the config file (DAL.dll.config) be as well ?

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“PHP is a minor evil perpetrated and created by incompetent amateurs, whereas Perl is a great and insidious evil perpetrated by skilled but perverted professionals.” - Jon Ribbens