473,973 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Configuration Question

AMP
Hello,
I asked a similar question yesterday with no responces.
I want to read and write to a configuration file with user
settings.(Windo ws App)
Are there any good books, or sites that explain
Properties.Sett ings.Default and such.
Or am I supposed to be using the Configuration classes?
When you decide to use the app.config you end up with
Settings.Settin gs,Settings.des igner,app.confi g.....
I want to learn how these operate together.
Thanks
Mike

Oct 18 '06 #1
3 1256

You can start with this concept

"Custom Configuration Handler"

I've written on here:

http://sholliday.spaces.live.com/blog/
2/8/2006
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)
Again, you don't want to concentrate on the email part of my solution, but
how I'm storing values in my own configuration section, and how to get at
them.
This is 1.1 code.

But since you didnt' get any responses, I thought I'd offer what I could.


"AMP" <am******@gmail .comwrote in message
news:11******** *************@e 3g2000cwe.googl egroups.com...
Hello,
I asked a similar question yesterday with no responces.
I want to read and write to a configuration file with user
settings.(Windo ws App)
Are there any good books, or sites that explain
Properties.Sett ings.Default and such.
Or am I supposed to be using the Configuration classes?
When you decide to use the app.config you end up with
Settings.Settin gs,Settings.des igner,app.confi g.....
I want to learn how these operate together.
Thanks
Mike

Oct 18 '06 #2
Mike,
I asked a similar question yesterday with no responces.
I want to read and write to a configuration file with user
settings.(Windo ws App)
Are there any good books, or sites that explain
Properties.Sett ings.Default and such.
Or am I supposed to be using the Configuration classes?
When you decide to use the app.config you end up with
Settings.Settin gs,Settings.des igner,app.confi g.....
I want to learn how these operate together.
See this MSDN article as displayed in the VS2005 Start Page today:

<http://msdn.microsoft. com/library/default.asp?url =/library/en-us/dnvs05/html/SettingsCS_RL.a sp>

That should point you in the right direction.

Regards,

Richard
Oct 18 '06 #3
AMP
Perfect.
Thanks
Mike
Richard wrote:
Mike,
I asked a similar question yesterday with no responces.
I want to read and write to a configuration file with user
settings.(Windo ws App)
Are there any good books, or sites that explain
Properties.Sett ings.Default and such.
Or am I supposed to be using the Configuration classes?
When you decide to use the app.config you end up with
Settings.Settin gs,Settings.des igner,app.confi g.....
I want to learn how these operate together.

See this MSDN article as displayed in the VS2005 Start Page today:

<http://msdn.microsoft. com/library/default.asp?url =/library/en-us/dnvs05/html/SettingsCS_RL.a sp>

That should point you in the right direction.

Regards,

Richard
Oct 18 '06 #4

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

Similar topics

3
1953
by: Robert | last post by:
I have an application with custom configuration sections in it's app.config file. Here's a shortened excerpt: <monitors> <monitor type="SystemMonitor.Monitors.NetworkAvailabilityMonitor,SystemMonitor"> <notifiers> <notifier type="SystemMonitor.Notifiers.MessageBoxNotifier,SystemMonitor" />
10
3779
by: Rider | last post by:
Hi, simple(?) question about asp.net configuration.. I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm first start application the follow message shown. ========= Server Error in '/QuickStartv20' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file
6
1527
by: barry | last post by:
I have VSTO 2005 and am not able to get ASP.NET Configuration under the Website menu to work. It just shows a not found page and comes back to where I executed it from. My question is can I download the Visual Web Developer Express 2005 at the same time the VSTO 2005 version is loaded to see if ASP.NET Configuration would work in the Visual Web Developer Express 2005. I realize this is not a solution but am curious to see if I can get...
9
2299
by: KarlM | last post by:
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?
4
1924
by: Michael Lang | last post by:
I was basically wanting to know how to use the System.Configuration namespace to be able to load an arbitrary number of unknown attributes on an element in a custom section in the .config into a NameValueCollection. Basically I want to do something similiar to what occurs with a System.Configuration.Provider.ProviderBase Initialise method - the provider is passed a NameValueCollection containing attribute names and their associated...
9
2922
by: shror | last post by:
hi every body, i have a problem which is when i was checking my mail() form it work fine but the problem is that the form configuration is not set correctly, in details: the from var is not working and the from is set to be my host provider email is the sender, so they told me to configure the php.ini file and i dont know what is this file and how to configure it. thanks in advance
3
12075
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) ---> System.Security.SecurityException: Request for the permission of type
2
2800
by: remya1000 | last post by:
i'm using VB.NET 2003. Last time while i did a program in Vb.Net 2005, i use "Configuration". and i could read and write to that XML configuration file like the example below. CODES: Imports System.Configuration Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
3
2252
by: guybenron | last post by:
Hey, I have a sort of petty-neurotic question, I'm kinda pedantic and like to keep my log directories clean, and this thing is bothering me to the point of actually posting a question (couldn't find any post about this..). My application has two types of components: daemons and regular ones that are run every on crontab. Because the log structure is very similar, I want both to use the same logging configuration file.
0
11807
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11399
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10070
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
8452
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
7600
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();...
0
6405
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6542
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5146
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 we have to send another system
3
3754
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.