473,320 Members | 1,699 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 2692
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.