HttpHandler not working in IIS v5.1 RRS feed

  • Question

  • User-1311618964 posted

    I am using a simple HttpHandler, which works fine when launch from visual studio, but fails to work when deployed in IIS 5.1. 

    I already have tried mapping .test extension to the ASP.NET ISAPI DLL as mentioned in the following link http://msdn.microsoft.com/en-us/library/bb515343.aspx  but  no luck .

     This is the code, which simply return current dateTime

    public class TestHttpHandler:IHttpHandler
        #region IHttpHandler Members
        public bool IsReusable
          get { return true; }
        public void ProcessRequest(HttpContext context)
    Here is my web.config settings:
          <add verb="GET" path="*.test" validate="false"/>
    I will appreciate any  help in this matter, as I am scratching my head from last many  hours for making this work. L





    Tuesday, October 13, 2009 10:54 AM

All replies

  • User2077888689 posted


    The web.config is missing the type attribute which is required. If your handler is placed in the App_Code, mention the type name or if it is in a seperate assembly mention the assembly name as well as in,

    <add verb="GET" path="*.test" validate="false" type="MyHandlerClass, MyHandlerAssemblyName"/>

    or(for code placed in App_code)

    <add verb="GET" path="*.test" validate="false" type="MyHandlerClass"/>

     Make sure you have added the mapping for *.test in IIS mappings as well and also make sure that the DLL that will handle the request for this resource is aspnet_isapi.dll.

    This has to work.

    Wednesday, October 14, 2009 5:04 AM