
450
|
Chapter 20: web.config Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Example
This example forces client-side redirect URLs to be fully qualified, which is
required for some of the mobile controls supplied in the Microsoft Mobile
Internet Toolkit:
<configuration>
<system.web>
<httpRuntime
useFullyQualifiedRedirectUrl="true" />
</system.web>
</configuration>
Notes
One of the most commonly customized attributes is maxRequestLength, since for
sites that need to upload files, 4MB can be fairly limiting. Use caution when
increasing this value, however; only increase it as much as necessary for the
maximum file size you expect. Making this value too large can make your site
vulnerable to denial-of-service attacks.
<identity>
<identity
impersonate=boolean
userName=string
password=string />
Specifies whether request impersonation is enabled, as well as the identity to be
used for requests made from the ASP.NET worker process and the password for
that identity.
Scope
Any
Attributes
impersonate
Specifies whether impersonation is enabled for the application. If
True,
requests made by the ASP.NET worker process will be made with the secu-
rity context of the account specified by the
userName attribute; if that attribute
is blank, the context of the account of the logged-in user. The default is
False.
userName
Specifies the username of the