Pages

Wednesday, December 8, 2010

How to Register HTTP handler with ASP.NET

To register your HTTP handler with ASP.NET. To do so add an entry in your Web.config at /configuration/system.web/httphandlers.


Please remove all "..." from the below code

...
<.... httpHandlers ....>
    <... clear /   ...>
    <.... add verb="*" path="*" type="namespace.classname, assemblyname" / .....>
<.... /httpHandlers ....>
...


In IIS  , Website  ->> properties -> Configuration -> mapping -> Add -> The Add/Edit Application Extension Mapping dialog box is displayed ->  in Executable box -> type 'Aspnet_isapi.dll'
In Extension box -> type file-name extension like '.sample'
Select the Verify that file exists check box
-> Ok -> apply -> Ok

**Default location of 'Aspnet_isapi.dll'  is %windows%\Microsoft.NET\Framework\version\"


****AS IS**** ; Please apply at your own risk.

No comments:

Post a Comment