473,513 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with right location for user.config

Hi all,

I have a really strange situation, but I believe that there is someone else
who has already experinced the same, and is willing to help me!

I made an application using VS 2005 in C#, which uses one setting from
*.exe.config file with 'user' scope. That is a server address, for example.

I wanted to setup that parameter during installation. So, I included one
additonal step during installation which collects a server address from the
user. I added additional user interface step, made a custom action, include
installer class in the project which saves a server address in the
user.config file, and everything else what is needed for it.

But, when I start the installation of the application, it appears that the
application uses the old, default
value for a server address! I tried to figure out what was happening, and
finally found out that user.config file is not stored in the proper place.
Insted of storing in:
"c:\documents and settings\user\local settings\application
settings\company_name\assembly_name\etc...",
it is stored in:
"c:\documents and settings\user\local settings\application
settings\microsoft_company\assembly_name\etc.."

Obviosly, installer uses it own company name (ie. Microsoft!) during
installation for storing
user.config file, instead of my_company name!

So, can anyone help me to solve this problem, please?

Thank you!

Nenad Dobrilovic


Dec 7 '06 #1
0 1212

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4771
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...
1
6452
by: logicnet.dk | last post by:
Is it possible to decide where user.config is stored by Properties.Settings.Default.Save? The default location seems to be "C:\Documents and Settings\\Local settings\Application Data\\\" and there...
1
5123
by: Matt F | last post by:
Two of the projects in my solution that both need to use a common user.config file. This is a data application - the executable that is created with the first project is the primary executable...
3
10476
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
1617
by: Gary Brown | last post by:
Hi, My "Local Settings/Application Data" directory contains several copies "user.config" differentiated by random gibberish added to program file name. What is the purpose of more than one...
4
2090
by: =?Utf-8?B?Qkw=?= | last post by:
I am in a problem to access user control(.ascx) on a .aspx page the following is my scenario I have following directory structure - Autoboom - workshop -- WSFirst -showroom
3
4040
by: Piotrekk | last post by:
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...
4
2107
by: TS | last post by:
i want to use these but think they may be only windows forms
0
826
by: Alain | last post by:
Is there a way to specify the location of the user.config file?
0
7158
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
7380
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,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5683
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
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.