471,349 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

user.config file question

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
3 3896
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
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
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.

Similar topics

2 posts views Thread by Yosh | last post: by
2 posts views Thread by Yoshi | last post: by
2 posts views Thread by Mark | last post: by
3 posts views Thread by twnety0ne | last post: by
3 posts views Thread by Jeremy Chaney | last post: by
reply views Thread by =?Utf-8?B?RGFubnk=?= | last post: by

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.