By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,979 Members | 960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,979 IT Pros & Developers. It's quick & easy.

user.config file question

P: n/a
Hi

I have a problem connected with user.config file. I am using default
settings.settings . To settings.settings I am adding one user scope
string and one application scope string. Thus app.config file is added
to my project. When I build and run the project app.exe.config file is
created and added to application base directory. This file contains
two strings added previously.

Q1: No user.config file is created in my documents and settings
folder. Why? Is that because the application should be installed using
msi installer rather than xcopy?

I expected Visual Studio to separate user settings from app settings
(at build time )and create user.config in user specific folder, and
app.exe.config in application base folder.

Best Regards
PK
Jun 27 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On May 7, 6:56 am, Piotrekk <Piotr.Kolodz...@gmail.comwrote:
Hi

I have a problem connected with user.config file. I am using default
settings.settings . To settings.settings I am adding one user scope
string and one application scope string. Thus app.config file is added
to my project. When I build and run the project app.exe.config file is
created and added to application base directory. This file contains
two strings added previously.

Q1: No user.config file is created in my documents and settings
folder. Why? Is that because the application should be installed using
msi installer rather than xcopy?

I expected Visual Studio to separate user settings from app settings
(at build time )and create user.config in user specific folder, and
app.exe.config in application base folder.

Best Regards
PK

I think the user config is created in (C:\Documents and Settings
\USERNAME\Local Settings\Application Data\"Company Name"\ExeName)
when the application runs. you get a user config file for each
version. this is what i have noticed in my app...
Jun 27 '08 #2

P: n/a
On May 7, 4:15 pm, parez <psaw...@gmail.comwrote:
On May 7, 6:56 am, Piotrekk <Piotr.Kolodz...@gmail.comwrote:
Hi
I have a problem connected with user.config file. I am using default
settings.settings . To settings.settings I am adding one user scope
string and one application scope string. Thus app.config file is added
to my project. When I build and run the project app.exe.config file is
created and added to application base directory. This file contains
two strings added previously.
Q1: No user.config file is created in my documents and settings
folder. Why? Is that because the application should be installed using
msi installer rather than xcopy?
I expected Visual Studio to separate user settings from app settings
(at build time )and create user.config in user specific folder, and
app.exe.config in application base folder.
Best Regards
PK

I think the user config is created in (C:\Documents and Settings
\USERNAME\Local Settings\Application Data\"Company Name"\ExeName)
when the application runs. you get a user config file for each
version. this is what i have noticed in my app...
On second thoughts, it mite be created when you call the save method
in the settings.
Jun 27 '08 #3

P: n/a
Hi Piotrekk

See http://www.codeproject.com/KB/dotnet/user_settings.aspx for more
informations about .NET user settings.

Reagrds
Jani

"Piotrekk" wrote:
Hi

I have a problem connected with user.config file. I am using default
settings.settings . To settings.settings I am adding one user scope
string and one application scope string. Thus app.config file is added
to my project. When I build and run the project app.exe.config file is
created and added to application base directory. This file contains
two strings added previously.

Q1: No user.config file is created in my documents and settings
folder. Why? Is that because the application should be installed using
msi installer rather than xcopy?

I expected Visual Studio to separate user settings from app settings
(at build time )and create user.config in user specific folder, and
app.exe.config in application base folder.

Best Regards
PK
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.