The system.webServer
element contains a defaultDocument child element that has the default document for the application,
as shown in Figure 25.1. Because this is an ASP.NET application, the default document is default
.aspx, as shown in the figure. The Visual Studio environment automatically changes this entry as
needed to match the default document set by the developer.
The configuration element normally contains a system.web element as a minimum. Notice
the comments shown in Figure 25.1. These comments provide instructions that help you modify the
entries correctly. For example, the compilation element normally contains a debug attribute that
determines whether the application is using a debug or release compilation. This same setting
MODIFYING THE CONFIG FILES 577
appears in the graphical interface as part of the .NET Compilation pane. You change it using the
Debug property.
Figure 25.1
Applications normally
contain some default
elements designed
to make them work.
In many instances, applications also contain an authentication element. Most ASP.NET applications
rely on forms authentication, so you??™ll see the mode attribute set to Forms.
Pages:
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323