
442
|
Chapter 20: web.config Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
<clear>
Clears all previously configured assemblies.
Example
This example shows the <add> element used by the Mobile Internet Toolkit to add
the assembly System.Web.Mobile to the list of assemblies for dynamic
compilation:
<assemblies>
<add assembly="System.Web.Mobile,
Version=1.0.3300.0,
Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
</assemblies>
Notes
The asterisk (*) wildcard is used with the <add> element to indicate that all assem-
blies in the application’s private assembly cache (by default, the bin subdirectory
of the application) should be added to the list of assemblies linked during
dynamic compilation. This ensures that all members of these assemblies will be
available to all the pages in your application automatically.
<compilers>
<compilers>
<compiler language=languageAlias
extension=fileExt
type=typeName
warningLevel=number
compilerOptions=optionString />
</compilers>
Contains one or more <compiler> elements, each of which defines configuration
options for a particular compiler to be used with ASP.NET.
Scope
Any
Attributes
None
Child Elements
<compiler>
Notes
Thanks to the <compilers> and <compiler> elements, adding support for a new .NET
language in ASP.NET is as simple as adding a new
<compiler> element specifying the
language aliases,