Click here to Skip to main content
15,891,184 members
Articles / Programming Languages / C#
Tip/Trick

HTTP Handler

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
21 Sep 2010CPOL 10.2K   1  
This is a tip I learnt from my recent project. We all know that to use a HTTP Handler we have to configure the ISAPI filter of the virtaul directory of IIS. We have to map the desired extension to a dll that will invoke our assembly. FOr example - if we need to use a .abc web extension, we need to map .abc to a dll (mostly aspnet_isapi.dll).

This can also be achieved without the ISAPI mapping in IIS. If you are not too particular about the extension that you would use for your web calls, then you can go for a .ashx extension for your HTTP handlers. .ashx is an inbuilt extension in IIS for HTTP Handlers. They are mapped to aspnet_isapi.dll by default. This saves you the hassle of manually configuring IIS and config file. This might come handy when deploying your HTTP Handlers on a remote web server where configuring IIS is a pain.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Australia Australia
I am a Senior Software Developer / Technical Consultant in a leading software company.

Comments and Discussions

 
-- There are no messages in this forum --