473,732 Members | 2,227 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:\documen ts and settings\user\l ocal settings\applic ation
settings\compan y_name\assembly _name\etc...",
it is stored in:
"c:\documen ts and settings\user\l ocal settings\applic ation
settings\micros oft_company\ass embly_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 1226

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

Similar topics

2
4784
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 same directory as the web.config (root). 2. There is nothing crazy about the contents. The contents are posted below. 3. The user.config file is in the appropriate directory, but has not been included in VSS.
1
6489
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 are several reasons why I want to change that: 1. I have noticed that the "some random key" part of the path name changed during the development of my application and then the settings were lost. 2. I would prefer that the application version...
1
5141
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 that users will be working with 99% of the time, the other is a seperate "maintenance" executable. The connection string is stored via My.Settings (encrypted of course). The problem is that obviously with 2 different .exe there are 2 seperate...
3
10523
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 Explorer and delete the file to get things working again, but I'd rather just catch the exception and resolve the error programatically. I tried "Properties.Settings.Default.Reset();" but that just throws the exception too. Does anyone know how I can...
3
1625
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 file? Not a problem, just curious. Thanks, Gary
4
2108
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
4064
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 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...
4
2116
by: TS | last post by:
i want to use these but think they may be only windows forms
0
831
by: Alain | last post by:
Is there a way to specify the location of the user.config file?
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8774
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.