473,320 Members | 1,859 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,320 software developers and data experts.

Application Configuration File?

What Application Configuration File is? And
when/where/how to use it? Any documents on that? MSDN has
somrthings scatter everywhere - hard to follow.

thanks,

Jul 19 '05 #1
2 3419
Kathy,
An Application Configuration File is an XML file that .NET uses to configure
your application.

For ASP.NET applications the file is called web.config. At run time it is
still called web.config.

For Windows applications, the file is called app.config. At run time the
app.config is called myexe.exe.config and need to be in the same directory
as the exe itself.

Class libraries (.dll files) do not have an Application Configuration File,
they need to rely on either the web.config or the app.config.

When you use 'Project - Add New Item - Application Configuration File' in
VS.NET to add one to your project it will be named either app.config or
web.config per above. At runtime it will be moved to the appropriate folder
and used.

There is also a machine.config file, that .NET uses to configure your
application. This file is merged with the app.config with the app.config
getting precedence. In other words you can use the machine.config to have
global settings that are shared across apps, then use the app.config to
override some of these settings.

The two primary sections of the app.config are configSections and
appSettings. appSettings is a predefined section that allows you to define
name/value pairs. You use
System.Configuration.ConfigurationSettings.AppSett ings to read values from
the appSettings section.

configSections allows you to define your own sections. You use
System.Configuration.ConfigurationSettings.GetConf ig to retrieve these
values.

See the following for create new sections via the configSections section.

http://msdn.microsoft.com/library/de...onhandlers.asp

and:
http://msdn.microsoft.com/library/de...ionsschema.asp

Also read about the System.Configuration.ConfigurationSettings class and
other classes in the System.Configuration namespace.

And yes, the documentation is scattered & hard to follow...

Hope this helps
Jay

"kathy" <ka***@nospam.com> wrote in message
news:00****************************@phx.gbl...
What Application Configuration File is? And
when/where/how to use it? Any documents on that? MSDN has
somrthings scatter everywhere - hard to follow.

thanks,

Jul 19 '05 #2
The intent was not to offend you which you seem to have been so my
apologies.

Good luck in your search and hope Jay's answer following mine is more
helpful.

Peace.

"kathy" <ka***@nospam.com> wrote in message
news:03****************************@phx.gbl...
"specific technical questions" means what? My question IS
a specific technical questions.

your answer is useless.

Jul 19 '05 #3

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

Similar topics

2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
6
by: Javier Cortés Cortés | last post by:
i am getting this error when i am trying to access any file(with the ext. aspx) from my remote server. the error is : Server Error in '/' Application....
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
9
by: Wayne Wengert | last post by:
I built an ASP application and it runs fine on my local IIS. I am trying to move the application to my web service (ISP) out on the internet. I've read several of the help articles but they all...
0
by: George Durzi | last post by:
I'm trying to extend the ExceptionManager Application Block and build a custom publisher that writes my exceptions to the database. That's easy part. The difficulty I am having is in configuring my...
3
by: Sean | last post by:
HI There, I am having trouble deploying my .aspx pages to a remote server, I have made changes to the config file and it still returns an error. I have also contacted the server administrator to...
12
by: Kevin Farless | last post by:
Hi all, I'm having trouble viewing any .aspx pages on my hosting company's server. The server is a new box running Windows Server 2003 default installation. I'm the first client to try using...
5
by: rdcpro | last post by:
In reading MSDN docs on creating custom Configuration sections, I found this page: ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.