Last post Mar 02, 2015 09:46 PM by Shawn - MSFT
Feb 26, 2015 11:41 AM|myaung|LINK
Can anyone tell me how to deploy httphandler (ashx) on IIS7 step-by-step, suppose I have domain http://test.com.uk ?
I explored online but most are about how to consume.
Feb 27, 2015 09:30 AM|Shawn - MSFT|LINK
For this situation, after you have created a custom HTTP handler class, you must register it in the Web.config file. This enables ASP.NET to call the HTTP handler in order to service requests for resources that have the specified file name
For IIS 6.0, you register the handler by using the httpHandlers section
of the Web.config file. For IIS 7.0 running in Classic mode, you register the handler in the httpHandlers section,
and you map the handler to the Aspnet_isapi.dll file. For IIS 7.0 running in Integrated mode, you register the handler by using the handlers element
in the system.WebServersection.
For more information, you could refer to:
Mar 01, 2015 12:45 AM|myaung|LINK
Thanks for answer.
Is ashx already mapped to the ASP.NET ISAPI extension (Aspnet_isapi.dll) ? Do I still need to mention in web.config ?
Mar 02, 2015 09:46 PM|Shawn - MSFT|LINK
By default, Internet Information Services (IIS) passes requests for only certain file types to ASP.NET to service. Files with file-name extensions such as .aspx, asmx, and .ashx are already mapped to the ASP.NET ISAPI extension (Aspnet_isapi.dll).