Skip to main content
Version: v3

WebError Element (Iis Extension)

Description
Custom Web Errors used by WebSites and Virtual Directories.
Windows Installer references
None
Parents
WebSite, WebVirtualDir
Inner Text
None
Children
None
Attributes
NameTypeDescriptionRequired
ErrorCodeIntegerHTTP 1.1 error code.Yes
FileStringFile to be sent to the client for this error code and sub code. This can be formatted. For example: [#FileId]. 
SubCodeIntegerError sub code. Set to 0 to get the wild card "*".Yes
URLStringURL to be sent to the client for this error code and sub code. This can be formatted. 
Remarks
You can only use error code and sub code combinations which are supported by IIS. Attempting to set a custom error for an error code and sub code combination that is not supported by IIS (in the default list of error codes) will result in an installation failure.
See Also
Iis Schema