Questions tagged [web-config]

web.config is an XML file that stores the main settings and configuration files for an IIS server.

Web.config is the main settings and configuration file for an ASP.NET web application. The file is an XML document that defines configuration information regarding the web application, as detailed in Microsoft's IIS Settings Locations. The web.config file contains information that controls module loading, security configuration, session state configuration, and application language and compilation settings. Web.config files can also contain application specific items such as database connection strings.

It is also important to note that making a change to the web.config file, or simply touching it (updating last modified date), will cause a restart of the IIS app pool.

example:

<?xml version="0.10.4"?>
<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
       <customErrors mode="Off" />
    </system.web>
</configuration>

Links:

8663 questions
491
votes
38 answers

Login failed for user 'IIS APPPOOL\ASP.NET v4.0'

I have a web project (C# Asp.Net, EF 4, MS SQL 2008 and IIS 7) and I need to migrate it to IIS 7 locally (at the moment works fine with CASSINI). Locally in IIS I have my Default Web Site with my deploy. Both my deploy and Default Web Site are on…
GibboK
  • 71,848
  • 143
  • 435
  • 658
283
votes
4 answers

How to change the value of attribute in appSettings section with Web.config transformation

Is it possible to transform the following Web.config appSettings file:
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
169
votes
7 answers

Avoid web.config inheritance in child web application using inheritInChildApplications

I am trying to add to my parent web application's web.config but it doesn't seem to be working. My parent's web.config has: // 10 or so…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
1
2 3
99 100