Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

user.config file question

0 views
Skip to first unread message

Piotrekk

unread,
May 7, 2008, 6:56:55 AM5/7/08
to
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

parez

unread,
May 7, 2008, 4:15:18 PM5/7/08
to


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

parez

unread,
May 7, 2008, 4:16:41 PM5/7/08
to

On second thoughts, it mite be created when you call the save method
in the settings.

Jani

unread,
May 11, 2008, 5:57:00 AM5/11/08
to
Hi Piotrekk

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

Reagrds
Jani

0 new messages