After reading some articles regarding confuguration data I'm a bit confused.
Where is the right place for storing configuration data?
- XML-files?
- registry?
- INI-files? (from a users point of view, ini-files are more comfortable to
read and edit)
Where should I store user specific config data?
Where should I store machine specific config data?
Why not use the registry? There are some articles, that mention, that the
registry should not be used any more. Why not? How can I implement Group
Policy without using the regisry?
The standard mechanism of C# / Net-Framework creates a file named
»Application.exe.config« in the program directory.
Is the program directory the right place for configuration information?
Due to windows design guidelines files in the program directory should not
be edited. From this point of view, the program directory seems not to be a
good place for config information.
It would be helpfull to get some comments to this questions.
Thanks in advance
Regards ... 9 2216
Personally, I use .config files. It's easy to encrypt down to the section
level, you can extend them by creating your own config sections and the
framework provides all the classes you'll need to cleanly access and update
them.
HTH
Glenn
"KarlM" <Ma******@newsgroup.nospamwrote in message
news:02**********************************@microsof t.com...
After reading some articles regarding confuguration data I'm a bit
confused.
Where is the right place for storing configuration data?
- XML-files?
- registry?
- INI-files? (from a users point of view, ini-files are more comfortable
to
read and edit)
Where should I store user specific config data?
Where should I store machine specific config data?
Why not use the registry? There are some articles, that mention, that the
registry should not be used any more. Why not? How can I implement Group
Policy without using the regisry?
The standard mechanism of C# / Net-Framework creates a file named
»Application.exe.config« in the program directory.
Is the program directory the right place for configuration information?
Due to windows design guidelines files in the program directory should not
be edited. From this point of view, the program directory seems not to be
a
good place for config information.
It would be helpfull to get some comments to this questions.
Thanks in advance
Regards ...
Unfortunately, there's no really good answer, just the one that, in
your particular circumstance, is better than the rest.
Some things to consider when trying to decide whcih that is:
- If XML or the registry scare your users, they probably shouldn't be
editting a configuration file manually anyway.
- In a properly locked-down system, the C:\Program Files tree should be
writable only to administrators. Hence, the application.exe.config
should probably only be used for items that are set at installation and
never changed.
-Small amounts of user-specific data should probably go in the
HKEY_Current_User section of the register.
- Large amounts of user-specific data should probably go the isolated
storage (C:\Documents and Settings\user\Local Settings\Application
Data)
-Small amounts of machine -specific data should probably go in the
HKEY_LOCAL_MACHINE section of the register.
-I have no idea where large amounts of machine-specific data should go.
KarlM wrote:
After reading some articles regarding confuguration data I'm a bit confused.
Where is the right place for storing configuration data?
- XML-files?
- registry?
- INI-files? (from a users point of view, ini-files are more comfortable to
read and edit)
Where should I store user specific config data?
Where should I store machine specific config data?
Why not use the registry? There are some articles, that mention, that the
registry should not be used any more. Why not? How can I implement Group
Policy without using the regisry?
Hi Martin,
Actually, you can use any other these 3 ways to store the configuration
data. But for a .NET app, we suggest you use the app.config file.
If anything is unclear, please feel free to let me know.
Kevin Yu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Thanks to anybody for comments!
OK, it seems to be »state of the art« to use XML-Files for configuration data.
But there are really a few questions left:
1.
There are many needs to change application specific data after installation.
For sure, only the system administrator should do this.
Should the config-file better be saved in »common application data« instead
of the ProgDir-Folder?
Is there a way to do this using the net standard features (I could not find
a solution to change the folder (or name) of the application.exe.config).
2.
As far as I know, the application.exe.config cannot be changed during runtime.
So, it seems to me, that I have to implement a second Configuration file,
that can be changed by the administrator at runtime of the app. Correct?
So, it seems to me, that the application.exe.config is basicly a config-file
for the developer, but not for the administrator of the system.
I found a statement at: http://www.builderau.com.au/program/...9211304,00.htm
This solution seems to be more flexible.
I am looking forward to further comments, just to make sure, that I
understood the basic concept of the net-config-mechanism.
Thanks.
Regards
Karl.
After reade
"KarlM" wrote:
After reading some articles regarding confuguration data I'm a bit confused.
Where is the right place for storing configuration data?
- XML-files?
- registry?
- INI-files? (from a users point of view, ini-files are more comfortable to
read and edit)
Where should I store user specific config data?
Where should I store machine specific config data?
Why not use the registry? There are some articles, that mention, that the
registry should not be used any more. Why not? How can I implement Group
Policy without using the regisry?
The standard mechanism of C# / Net-Framework creates a file named
»Application.exe.config« in the program directory.
Is the program directory the right place for configuration information?
Due to windows design guidelines files in the program directory should not
be edited. From this point of view, the program directory seems not to be a
good place for config information.
It would be helpfull to get some comments to this questions.
Thanks in advance
Regards ...
"KarlM" <Ma******@newsgroup.nospamwrote in message
news:F5**********************************@microsof t.com...
Thanks to anybody for comments!
OK, it seems to be »state of the art« to use XML-Files for configuration
data.
But there are really a few questions left:
1.
There are many needs to change application specific data after
installation.
For sure, only the system administrator should do this.
Should the config-file better be saved in »common application data«
instead
of the ProgDir-Folder?
Is there a way to do this using the net standard features (I could not
find
a solution to change the folder (or name) of the application.exe.config).
You can encrypt sections of the file to prevent user tampering.
2.
As far as I know, the application.exe.config cannot be changed during
runtime.
So, it seems to me, that I have to implement a second Configuration file,
that can be changed by the administrator at runtime of the app. Correct?
It definately can be changed at runtime.
So, it seems to me, that the application.exe.config is basicly a
config-file
for the developer, but not for the administrator of the system.
Can't agree with you there. I personally believe it makes a developers
lives easier, but our guys in the Support team like them as well given the
farting around that have to do with some non-.NET apps we have around.
What about web applications? Web.config makes administration pretty easy.
I found a statement at: http://www.builderau.com.au/program/...9211304,00.htm
This solution seems to be more flexible.
If you want to, sure, but you can extend config files by creating your own
configuration section classes which are type-safe and can be secured with
relative ease. You also don't have to mess around with type serialisation,
ok, yes, it's relatively easy, but why bother when it's all there in
System.Configuration.
It just feels like your re-inventing the wheel.
>
I am looking forward to further comments, just to make sure, that I
understood the basic concept of the net-config-mechanism.
Thanks.
Regards
Karl.
After reade
"KarlM" wrote:
>After reading some articles regarding confuguration data I'm a bit confused.
Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point of view, ini-files are more comfortable to read and edit)
Where should I store user specific config data? Where should I store machine specific config data?
Why not use the registry? There are some articles, that mention, that the registry should not be used any more. Why not? How can I implement Group Policy without using the regisry?
The standard mechanism of C# / Net-Framework creates a file named »Application.exe.config« in the program directory. Is the program directory the right place for configuration information? Due to windows design guidelines files in the program directory should not be edited. From this point of view, the program directory seems not to be a good place for config information.
It would be helpfull to get some comments to this questions. Thanks in advance
Regards ...
Hi Glenn,
thanks for your comments. I think you are right.
So I am going to look a bit deeper into the System.configuration classes and
try to use them.
If you have some documentation / links / sample available about the using of
these classes, that would be great.
Thanks for your help.
Regards
Karl.
"Glenn" wrote:
"KarlM" <Ma******@newsgroup.nospamwrote in message
news:F5**********************************@microsof t.com...
Thanks to anybody for comments!
OK, it seems to be »state of the art« to use XML-Files for configuration
data.
But there are really a few questions left:
1.
There are many needs to change application specific data after
installation.
For sure, only the system administrator should do this.
Should the config-file better be saved in »common application data«
instead
of the ProgDir-Folder?
Is there a way to do this using the net standard features (I could not
find
a solution to change the folder (or name) of the application.exe.config).
You can encrypt sections of the file to prevent user tampering.
2.
As far as I know, the application.exe.config cannot be changed during
runtime.
So, it seems to me, that I have to implement a second Configuration file,
that can be changed by the administrator at runtime of the app. Correct?
It definately can be changed at runtime.
So, it seems to me, that the application.exe.config is basicly a
config-file
for the developer, but not for the administrator of the system.
Can't agree with you there. I personally believe it makes a developers
lives easier, but our guys in the Support team like them as well given the
farting around that have to do with some non-.NET apps we have around.
What about web applications? Web.config makes administration pretty easy.
I found a statement at: http://www.builderau.com.au/program/...9211304,00.htm
This solution seems to be more flexible.
If you want to, sure, but you can extend config files by creating your own
configuration section classes which are type-safe and can be secured with
relative ease. You also don't have to mess around with type serialisation,
ok, yes, it's relatively easy, but why bother when it's all there in
System.Configuration.
It just feels like your re-inventing the wheel.
I am looking forward to further comments, just to make sure, that I
understood the basic concept of the net-config-mechanism.
Thanks.
Regards
Karl.
After reade
"KarlM" wrote:
After reading some articles regarding confuguration data I'm a bit
confused.
Where is the right place for storing configuration data?
- XML-files?
- registry?
- INI-files? (from a users point of view, ini-files are more comfortable
to
read and edit)
Where should I store user specific config data?
Where should I store machine specific config data?
Why not use the registry? There are some articles, that mention, that the
registry should not be used any more. Why not? How can I implement Group
Policy without using the regisry?
The standard mechanism of C# / Net-Framework creates a file named
»Application.exe.config« in the program directory.
Is the program directory the right place for configuration information?
Due to windows design guidelines files in the program directory should
not
be edited. From this point of view, the program directory seems not to be
a
good place for config information.
It would be helpfull to get some comments to this questions.
Thanks in advance
Regards ...
Hi Karl,
If you need some configurations to be changed, you can take a look at the
Setting files. Here is a technical article. http://msdn.microsoft.com/library/de...us/dnvs05/html
/SettingsCS_RL.asp
I think it will meet your requirements. Let me know if you have any concern
on it.
Kevin Yu
Microsoft Online Community Support
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Karl
Here's where I started in .net 2. http://msdn2.microsoft.com/en-us/lib...onmanager.aspx
From here you'll find all the documentation and examples you'll need. There
would seem to a lot to it, which there is, but actually its pretty simple to
use.
HTH
Glenn
"KarlM" <Ma******@newsgroup.nospamwrote in message
news:ED**********************************@microsof t.com...
Hi Glenn,
thanks for your comments. I think you are right.
So I am going to look a bit deeper into the System.configuration classes
and
try to use them.
If you have some documentation / links / sample available about the using
of
these classes, that would be great.
Thanks for your help.
Regards
Karl.
"Glenn" wrote:
>"KarlM" <Ma******@newsgroup.nospamwrote in message news:F5**********************************@microso ft.com...
Thanks to anybody for comments!
OK, it seems to be »state of the art« to use XML-Files for
configuration
data.
But there are really a few questions left:
1.
There are many needs to change application specific data after
installation.
For sure, only the system administrator should do this.
Should the config-file better be saved in »common application data«
instead
of the ProgDir-Folder?
Is there a way to do this using the net standard features (I could not
find
a solution to change the folder (or name) of the
application.exe.config). You can encrypt sections of the file to prevent user tampering.
2.
As far as I know, the application.exe.config cannot be changed during
runtime.
So, it seems to me, that I have to implement a second Configuration
file,
that can be changed by the administrator at runtime of the app.
Correct?
It definately can be changed at runtime.
So, it seems to me, that the application.exe.config is basicly a
config-file
for the developer, but not for the administrator of the system.
Can't agree with you there. I personally believe it makes a developers lives easier, but our guys in the Support team like them as well given the farting around that have to do with some non-.NET apps we have around.
What about web applications? Web.config makes administration pretty easy.
I found a statement at: http://www.builderau.com.au/program/...9211304,00.htm
This solution seems to be more flexible.
If you want to, sure, but you can extend config files by creating your own configuration section classes which are type-safe and can be secured with relative ease. You also don't have to mess around with type serialisation, ok, yes, it's relatively easy, but why bother when it's all there in System.Configuration.
It just feels like your re-inventing the wheel.
>
I am looking forward to further comments, just to make sure, that I
understood the basic concept of the net-config-mechanism.
Thanks.
Regards
Karl.
After reade
"KarlM" wrote:
After reading some articles regarding confuguration data I'm a bit confused.
Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point of view, ini-files are more comfortable to read and edit)
Where should I store user specific config data? Where should I store machine specific config data?
Why not use the registry? There are some articles, that mention, that the registry should not be used any more. Why not? How can I implement Group Policy without using the regisry?
The standard mechanism of C# / Net-Framework creates a file named »Application.exe.config« in the program directory. Is the program directory the right place for configuration information? Due to windows design guidelines files in the program directory should not be edited. From this point of view, the program directory seems not to be a good place for config information.
It would be helpfull to get some comments to this questions. Thanks in advance
Regards ...
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chris Lasher |
last post by:
Hello,
I have a rather large (100+ MB) FASTA file from which I need to
access records in a random order. The FASTA format is a standard format
for storing molecular biological sequences. Each...
|
by: Cherrish Vaidiyan |
last post by:
sir,
I have a small error in Listener configuration.I have two system with
a database in each. I am using Red Hat 9 and Oracle 9i. so i shall
anme the database and system.
system 1 - node2 ...
|
by: peter wang |
last post by:
Hi,
Could anyone tell me the backup strategy for a 1000GB database?
Thank you!
Peter Wang
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in...
|
by: Claudio Jolowicz |
last post by:
I am trying to find a solution to the following design problem
(code at the bottom):
We are implementing a trader agent that can trade with other traders
on an electronical trading platform. To...
|
by: Bob |
last post by:
All,
I have read through lots of postings regarding my concerns, but I
haven't found what I am looking for.
The center (non profit University) where I work collects scientific
data about...
|
by: Derek |
last post by:
Hi All,
I am developing a Windows based application that consists of several
different modules. These modules are effectively separate from each other
yet share information in a common database....
|
by: hendry.johan |
last post by:
Hi,
I'm currently developing an HR system which involves storing a lot of
configurations per module, such as payroll module, absence/shift
module, training module, etc. total: around 100...
|
by: Terrance |
last post by:
I was wondering if someone can help me with my question regarding the
configuration system functionality in the .NET Framework 2.0 for VB. My
question is, if I have a application configuration...
|
by: Harold Crump |
last post by:
Greetings,
I have a fairly vanilla PHP web application that stores and retrieves
data in a MySQL database.
Users will be adding a lot of special characters such as single and
double quotes,...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: Aliciasmith |
last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: isladogs |
last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, Mike...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |