473,406 Members | 2,390 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,406 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 4031
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Yosh | last post by:
Morning! I am developing an winform application in c#. I have an app.config file that contains an entry with a Url address assigned to it. When I run my application I get the following error: ...
2
by: Yoshi | last post by:
Can you save to a "MyApp.exe.config" file? Thank you, Dave
2
by: Mark | last post by:
Our team uses VSS. We each have a user.config file for local settings. One developer's file does NOT kick in - it pulls directly from the web.config file. 1. The user.config file is in the...
3
by: twnety0ne | last post by:
Hi, I am trying to implement navigation within my windows application using an external configuration file, i was wondering if i can store a form name in the configuration file, read the file from...
1
by: Jeremy Chaney | last post by:
It appears that my user.config file got corrupted causing my "InitializeComponent" routine to throw an exception "Root element is missing." when I start my app. I figure I can just go into...
3
by: Jeremy Chaney | last post by:
It appears that my user.config file got corrupted causing my "InitializeComponent" routine to throw the exception "Root element is missing." when I start my app. I figure I can just go into...
3
by: DaBrain | last post by:
I have a program that uses settings. When I save my settings they are saved: Properties.Settings.Default.Save(); when I restart the application, my settings are present, the changes are in...
0
by: =?Utf-8?B?RGFubnk=?= | last post by:
Hi, I'm migrating an app from VC6 to VC2005 with the /clr option. I have a question about the Visual Studio Project User Options file. Is there a way to default it to certain name or not use...
3
by: penseur11 | last post by:
Hi, I'm trying to write a new web.config file using VB in ASP.net. I am trying to set access permissions, but it won't let me use the question mark to denote: <deny users="?" /> in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.