473,785 Members | 2,363 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ConfigurationMa nager 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 2843
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 ConfigurationMa nager 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
5690
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 not writable. How can I write to a ManifestResourceStream? Is this impossible? Regards Alexander
13
1687
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 located in a subfolder of Demo, named images. I implement Role based form authentication. When I access all aps forms, it works fine and ask me user/password. However, I can use IE browser to directly access any image file in subfolder images. My...
6
1200
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 error message. The config is XP/SP2 with VS.Net 2003 EA and VS6SP5.
19
2536
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 settings? What is the standard method of saving user settings for VB.Net apps?
1
2182
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 Catalog=xxxx;..... But if I add the same connection string by wizard in a class library project, the connection string in app.config will be: <add name="dataHealth.Properties.Settings.MyDataBase" connectionString="Data Source=.\SLEEPERS;Initial...
11
1982
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
14153
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
7325
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 able to have settings persist for both librarys but have it contained in one settings files (this is in the class library as the control library uses the class library)...
0
1428
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 application, by default it creates an 'applicationSetings' area in the .config file. Whereas, the default enterprise library creates the older 'appSettings' area. What I am trying to do is that I have my entire app using EL 3.1 for the application...
0
10356
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
10161
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...
1
10098
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
9958
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
8986
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...
0
6743
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
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
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.