Search:
Welcome Guest | Register | Login
logo

Captcha V 4.0 Not working on production server

I am using captcha version 4.0 in my application and it is working smooth on my machine.

Once I published and upload on production server it's image is not showing.

What am I missing?

  • captcha
2
 
Asked: 25 Dec 2012
Reputation: 47
Dasia Petersen
3 Answers

I was facing the same problem so I added these lines:

<system.web>
   <pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID">
     <controls>             
          <add tagPrefix="captcha" namespace="MSCaptcha" assembly="MSCaptcha" /> 
      </controls>
    </pages>   


   <httpHandlers>
     <add verb="GET" path="CaptchaImage.axd" 
            type="MSCaptcha.captchaImageHandler, MSCaptcha "/>
   </httpHandlers>    
<system.web>    



 <location path="CaptchaImage.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>     

I tried all the above but it was not working so finally I added

<system.webServer>
    <handlers>
      <add name="MSCaptcha.captchaImageHandler" verb="GET" path="CaptchaImage.axd" 
          type="MSCaptcha.captchaImageHandler, MSCaptcha" resourceType="Unspecified" />
    </handlers>
 <system.webServer> 

And now everything working smooth, hope it will help you to fix your problem
Note: Please check the lower case c in type "MSCaptcha.captchaImageHandler"

3
 
Answered: 26 Dec 2012
Reputation: 320
Horizon Net

Add only following lines and everything will be smooth

 <system.webServer>
    <handlers>
      <add name="MSCaptcha.captchaImageHandler" verb="GET" path="CaptchaImage.axd" 
          type="MSCaptcha.captchaImageHandler, MSCaptcha" resourceType="Unspecified" />
    </handlers>
 <system.webServer> 
1
 
Answered: 29 Jun 2013
Reputation: 59
Ralph Hirujo

That worked perfect for me, thank you Ralph!!!!!!

Add only following lines and everything will be smooth

0
 
Answered: 14 Dec 2013
Reputation:
David Alarcon
Login to post your answer
viewed 766
asked 25 Dec 2012