What is web.config file ?

What is web.config file ?

Web.config file is the configuration file for the Asp.net web application. There is one web.config file for one asp.net application which configures the particular application. Web.config file is written in XML with specific tags having specific meanings.It includes databa which includes connections,Session States,Error Handling,Security etc. For example :
< configuration >
< appSettings >
< add key="ConnectionString"
value="server=localhost;uid=sa;pwd=;database=MyDB" / >
< /appSettings >
< /configuration >


Comments

Author: Deepthi07 May 2008 Member Level: Silver   Points : 2

Web.config file, as it sounds like is a configuration file for the Asp .net web application. An Asp .net application has one web.config file which keeps the configurations required for the corresponding application. Web.config file is written in XML with specific tags having specific meanings.
There are number of important settings that can be stored in the configuration file. Here are some of the most frequently used configurations, stored conveniently inside Web.config file..

Database connections
Session States
Error Handling
Security

Author: Deepthi07 May 2008 Member Level: Silver   Points : 2

Web.config file, as it sounds like is a configuration file for the Asp .net web application. An Asp .net application has one web.config file which keeps the configurations required for the corresponding application. Web.config file is written in XML with specific tags having specific meanings.
There are number of important settings that can be stored in the configuration file. Here are some of the most frequently used configurations, stored conveniently inside Web.config file..

Database connections
Session States
Error Handling
Security

Author: vishal12 Jul 2011 Member Level: Bronze   Points : 1

Web.config file contains configuration of asp.net application.
Web.config file written in XML which contains tag with specific meaning.this file placed in root folder of application.One application contains number of web.config file but in different folders. web.config file contains application specific settings.

Guest Author: Jhonfranco11 Jun 2012

Hey, I found this blog post while searching for help with fixing Microsoft Silverlight. I have recently changed browsers from Opera to IE. After the change I seem to have a problem with loading websites that use Microsoft Silverlight. Every time I go on a website that requires Microsoft Silverlight, the site does not load and I get a npctrl.dll error. I can't seem to find out how to fix the problem. Any aid getting Microsoft Silverlight to function is greatly appreciated! Thanks

Author: ketan Italiya09 Oct 2013 Member Level: Gold   Points : 4

The time you start developing your web application until you finish the application, you will more often use the Web.config file not only for securing your application but also for wide range of other purposes which it is intended for. ASP.NET Web.config file provides you a flexible way to handle all your requirements at the application level. Despite the simplicity provided by the .NET Framework to work with web.config, working with configuration files would definitely be a task until you understand it clearly.



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: