473,320 Members | 1,940 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,320 software developers and data experts.

WinForm .Config loading issues

Joe
Hi
Does anyone know of any issues about loading config files for windows
forms applications?

I have an application that utilizes a config file that holds my database
connection string as well as other user settings. With the original VS.NET,
when loading the application through the IDE debugger everything went as
planned and the config file was loaded.

Now with VS.NET 2003 it seems that when I run the debugger the config file
is deleted..... go figure.... Is this some new funky hell annoying
bug/feature or what?

If I set a dynamic property for one of the forms to be stored in the
appSettings section of the config file, when I kick off the debugger again
this time a new config file is created with that setting as one of the keys.

I tried re writting my keys into this generated config file but when loading
from the debugger it always is overwritten.

If I just run the application everything seems to work fine.

Any ideas??

Cheers
Joe
Jul 19 '05 #1
1 2691
Joe
Ahhh Figured it out..... VS.NET 2003 now allows you to add a "Application
Configuration Settings" item to your projects. default name is app.config
which at compile time generates the <application name>.exe.config file.

hope it helps someone else :)

Joe.

"Joe" <jc****@circlesolutions.com.au> wrote in message
news:Op**************@TK2MSFTNGP09.phx.gbl...
Hi
Does anyone know of any issues about loading config files for windows
forms applications?

I have an application that utilizes a config file that holds my database
connection string as well as other user settings. With the original VS.NET, when loading the application through the IDE debugger everything went as
planned and the config file was loaded.

Now with VS.NET 2003 it seems that when I run the debugger the config file
is deleted..... go figure.... Is this some new funky hell annoying
bug/feature or what?

If I set a dynamic property for one of the forms to be stored in the
appSettings section of the config file, when I kick off the debugger again
this time a new config file is created with that setting as one of the keys.
I tried re writting my keys into this generated config file but when loading from the debugger it always is overwritten.

If I just run the application everything seems to work fine.

Any ideas??

Cheers
Joe

Jul 19 '05 #2

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

Similar topics

1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
2
by: Joe | last post by:
Hi Does anyone know of any issues about loading config files for windows forms applications? I have an application that utilizes a config file that holds my database connection string as well...
0
by: Joe | last post by:
Hi Does anyone know of any issues about loading config files for windows forms applications? I have an application that utilizes a config file that holds my database connection string as well...
6
by: WT | last post by:
Hello, Using VS2005. I have an assembly library that can be called from a Web site asp.net application or from a winform application. From this library I need to retrieve a path using simply a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.