Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

<httpHandlers> Element

.NET Framework 1.1

Maps incoming requests to the appropriate IHttpHandler or IHttpHandlerFactory class, according to the URL and the HTTP verb specified in the request.


   <add verb="verb list" 
   <remove verb="verb list" 


Subtag Description
<add> Specifies verb/path mapping to an IHttpHandler or IHttpHandlerFactory class.
<remove> Removes a verb/path mapping to an IHttpHandler class. The <remove> directive must exactly match the verb/path combination of a previous <add> directive. Wildcard characters are not supported.
<clear> Removes all IHttpHandler mappings currently configured or inherited by the specified Web.config file.


The <httpHandlers> settings are inherited by subdirectories.

The <add> directives are processed in top-down sequential order. If two or more <add> subelements specify the same verb/path combination, the final <add> overrides all others.

Please note that Microsoft Internet Information Services (IIS) has its own concept of mapping extensions to ISAPIs. For the settings for a given extension in this section to take effect, the extension must be mapped in IIS to ASP.NET ISAPI. For nonstandard extensions (something other than .aspx, .asmx, .asax, and so on), the user must configure IIS.


The following example maps all HTTP requests for files with file name extension .New to the class MyHandler.New and for HTTP GET and HTTP HEAD requests for files with file name extension .MyNewFileExtension to the class MyHandler.MNFEHandler. Both classes are in the assembly MyHandler that is in the file MyHandler.dll.

         <add verb="*" 
         <add verb="GET,HEAD" 


Contained Within: <system.web>

Web Platform: IIS 5.0, IIS 5.1, IIS 6.0

Configuration File: Machine.config, Web.config

Configuration Section Handler: System.Web.Configuration.HttpHandlersConfigHandler

See Also

ASP.NET Configuration | ASP.NET Settings Schema

© 2015 Microsoft