473,383 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Apps.config

Hi,

I added an apps.config file into my Windows .NET project, but my application
cannot read the values.

Actually I have 3 projects in my solution and I added this apps.config into
my data layer project to have several connection strings depending on what
data source using I am.

Can you please give me some idea why this config file is not working?

FYI - the XML file is well formed

Thanks

Sean
Sep 16 '05 #1
2 1571
You mean app.config?

"Sean" <Se**@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
Hi,

I added an apps.config file into my Windows .NET project, but my
application
cannot read the values.

Actually I have 3 projects in my solution and I added this apps.config
into
my data layer project to have several connection strings depending on what
data source using I am.

Can you please give me some idea why this config file is not working?

FYI - the XML file is well formed

Thanks

Sean

Sep 16 '05 #2

"Sean" <Se**@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
Hi,

I added an apps.config file into my Windows .NET project, but my application cannot read the values.

Actually I have 3 projects in my solution and I added this apps.config into my data layer project to have several connection strings depending on what
data source using I am.

Can you please give me some idea why this config file is not working?


1. It should be named app.config not apps.config.

2. For a WinForms application, it gets renamed to "exename.exe.config" and
copied to the run directory. Be sure this is happening.

3. By default, all libraries (projects) use the same config file (the one
named "exename.exe.config" that is copied to the run directory).
Sep 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
Is there a UNIX style HUP call for .Net apps to make them keep running, but reread their .config files? Thanks, Steve
1
by: Martin | last post by:
Hi, How can I share config data between different web apps? If I have 2 sub apps, can they inherit the config of the parent app? Is this the best way to share config between different web...
2
by: Terry Mulvany | last post by:
Hello group, Curious as to how you all have chosen to deploy/publish your asp.net apps. Currently though we have a local dev environment, then we stage to a QA server then we publish/deploy. In...
4
by: SQLScott | last post by:
If I have two apps (one is a standard VB.Net EXE, the other is a VB.Net Windows Service). The EXE is just a UI to configure the settings for the Service. But, each one has their own App.Config....
2
by: Sean | last post by:
Hi, I added an apps.config file into my Windows .NET project, but my application cannot read the values. Actually I have 3 projects in my solution and I added this apps.config into my data...
24
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX...
5
by: djhexx | last post by:
Hi. We have an asp.net intranet application written in VB that uses forms authentication for all it's pages. I have a C# asp.net application that I just wrote. The company would like the C#...
9
by: dirk.dircksen | last post by:
Hi I've searched quite a bit and haven't been able to find an answer to this one: We're in the process of installing .Net 2.0 on our production servers (all Windows 2000 servers). None of the...
0
by: sillz | last post by:
On Apr 8, 2:00 pm, sillz <beth.sto...@gmail.comwrote: I never could get this to work. The oracle account tested fine. I ended up creating a new account in Windows with the right permissions...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.