473,396 Members | 2,115 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,396 software developers and data experts.

Difference Resource - Settings - App Config files?

In VS.2005 there are three templates for storing application info:
Resource File
Settings File
Application File.

1) What is the purpose of each one? When to use, when not?
2) How does VB's My.Setting map to these files?
3) Can a C# application access data written by VB's My.Setting ?
4) How does the ConfigurationManager class map to these files and is it
relevant to VB.Net coders?
5) I suppose it's bad practice to use config files from class libraries as
the code does not know whether it executes in WinForm or WebForm app.
6) If a user executes the business layer alternatively from WinForms app or
WebForm, it is me, the programmer, who has to synchronize the web.configs and
the Winform configs ?
7) VS.2005 now separates user and app configs. What about machine-specific
data like info about peripheral devices? Does it best go to the registry?

thanks herbert

Nov 25 '05 #1
1 2820
Herbert, did you get an answer? I'm converting visual basic 2003 to 2005
and the only part I haven't succeeded in upgrading is reading in the
app.config file. Can't find any documentation.

Evelyn

"herbert" wrote:
In VS.2005 there are three templates for storing application info:
Resource File
Settings File
Application File.

1) What is the purpose of each one? When to use, when not?
2) How does VB's My.Setting map to these files?
3) Can a C# application access data written by VB's My.Setting ?
4) How does the ConfigurationManager class map to these files and is it
relevant to VB.Net coders?
5) I suppose it's bad practice to use config files from class libraries as
the code does not know whether it executes in WinForm or WebForm app.
6) If a user executes the business layer alternatively from WinForms app or
WebForm, it is me, the programmer, who has to synchronize the web.configs and
the Winform configs ?
7) VS.2005 now separates user and app configs. What about machine-specific
data like info about peripheral devices? Does it best go to the registry?

thanks herbert

Dec 16 '05 #2

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

Similar topics

2
by: Alexander Wehrli | last post by:
Hi, I embedded some configuration XML-File into my assembly. Everything goes fine if I want to read these Properties. But if I want to change a property, the runtime says me that this stream is...
13
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files...
6
by: Guru Hippie | last post by:
I've just installed the VB.Net resource kit. I can navigate through most of it, but when I attempt to open any link that leads to a sample project or sample code, it doesn't respond. There's no...
19
by: Noozer | last post by:
I need to keep my application settings in a file that users can copy/backup/etc. Before I start using the old INI file standard, is there any easy way to use XML files to hold application...
1
by: ad | last post by:
When I add a connection string by wizard in a WebApp , the wizard add the connection string to web.config like <add name="MyDataBase" connectionString="Data Source=.\SQLEXPRESS;Initial...
11
by: Alan T | last post by:
I added a resource file into my project, to store the caption of buttons and labels.. How do I make use of this resource file to dynamically assign to the buttons and labels ?
4
by: SandyIsCool | last post by:
Hi, Can any one let me know what is difference between Server.mappath and Page.resolveURL and what are the situations we use them. Thanks, Sandy
5
by: t f | last post by:
Hi Okay this should be a simple one... In my solution i have 2 projects (one class library and one control library) - they both share the name default namespace - question is I want to be...
0
by: John | last post by:
Hi, I was wondering if it is possible to get the enterprise library (EL) 3.x to read/write the settings.settings section of the .config file? Because when you use the settings.settings in an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
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
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...

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.