locked
HttpHandler Not Called in Server RRS feed

  • Question

  • User-348591248 posted

    dear Frds

    I created a HttpHandler by using C# Website project to

            as User open image(Email-Bidy_img.JPG) & called Hanlder SimpleHandler to saved email to DB

    SimpleHanlder.CS insode Add_code folder

    public class SimpleHandler : IHttpHandler
    {

    #region IHttpHandler Members
    public SimpleHandler()
    {
    //
    // TODO: Add constructor logic here
    //
    }

    bool IHttpHandler.IsReusable
    {
    get { return true; }
    }
    void IHttpHandler.ProcessRequest(HttpContext context)
    {

           Some Coding are here for Email saving to Db

    }

    }
    #endregion
    }

    in web.config file i configure it by using the

    <httpHandler><add verb="*"  path="Email-Body-img.jpg" type="SimpleHandler"/></httpHnadler>

    Its run absultly fine in local but as i am trying to run this on server its dosen't call my Handler Named
    SimpleHandler"

    Whats should i have to do for runing this Handler in Server.

    Wednesday, April 24, 2013 6:48 AM

All replies

  • Wednesday, April 24, 2013 10:14 AM
  • User-348591248 posted

    I tryed all the opetion. not working yet

    I downloded aspnet.Isapi.dll & put it in Bin Directory....

    Write 

    <system.web>
        <httpHandlers>
          <add verb="*" path="Handler/Mail-Body.htm" 
            type="SampleHandler" />
        </httpHandlers>

    in Hnadler section inside Syste.webserver

     <system.webServer>
        <add name=SampleHandler" verb="*" path="Handler/Mail-Body.htm" 
          Modules="IsapiModule" 
          scriptProcessor="Bin\aspnet_isapi.dll"
          resourceType="File" />
      </system.webServer>
    I tryed
    scriptProcessor="Bin\aspnet_isapi.dll" as
    scriptProcessor="%path%\aspnet_isapi.dll" &
    scriptProcessor="aspnet_isapi.dll"
    scriptProcessor="Bin\aspnet_isapi.dll"
    Friday, April 26, 2013 3:50 AM