HttpModule not working

Discussion in 'ASP.NET / ASP.NET Core' started by ppcuban, Mar 20, 2009.

  1. Hello
    I have a class that inherits from IHttpModule but it's not working. I added to the webconfig the class... but nothing happens.

    It works fine in my localhost.

    Is there any special requirement or something. I have IIS7 in discountasp.net

    Thank You
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Can you post the web.config?
     
  3. pls dont forget to add in

    for eg

    <system.webServer>
    <handlers>
    <add name="CaptchaImage" verb="*" path="CaptchaImage.aspx" preCondition="integratedMode" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha"/>
    </handlers>
    </system.webServer>

    Don
     
  4. I have a similar problem the following peice of code in global.asax
    Dim dir As String = Request.Url.ToString.ToUpper

    If dir.Contains("/BOOKS/Football.ZIP") Then
    Response.Redirect("~/xyz/LoginRminder.aspx")
    End If

    The code works perfectly inlocal host but when I publish it to my website it does not

    Would any body advice me what to do please.
     
  5. To ppcuban

    Hi,

    Try with this statement:

    <add verb="GET" path="CaptchaImage.aspx" type="WebControlCaptcha.CaptchaImageHandler, WebControlCaptcha"/>

    Kinf Regards,
    Javier


    Nota: Leyendo tu nombre de usuario puedo deducir que eres cubano, en caso contrario dispense las deducciones erroneas. Saludos, desde cuba.
     
  6. Restricting Downlaods

    Thanks javier1981 for your reply.
    The problem is solved now I have contact Technical Support Team and Asked the to add wildcardmapping to my IIS Account.
    their response was fast but it took a time before the effect starts
     

Share This Page