Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSCaptcha Web.config httpHandler Error

I would like to use Recaptcha in my project and i have the following problem in my web.config file .

<httpHandlers>
    <add verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha" />
</httpHandlers>
<pages>
    <controls>
        <add tagPrefix="cc1" assembly="MSCaptcha" namespace="MSCaptcha" />
    </controls>
</pages>

My error:

HTTP Error 500.23 - Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Most likely causes:

This application defines configuration in the system.web/httpHandlers section.

like image 969
user3044282 Avatar asked Aug 05 '26 18:08

user3044282


1 Answers

It seems that you are running your application in Integrated mode on IIS 7.0 or higher.

When running in Integrated mode, you should register your HTTP Handlers like this:

<configuration>
  <system.web>
        ....
  </system.web>
  <system.webServer>
    <handlers>
<add name="CAPTCHAHandler" verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha" />
    </handlers>
  </system.webServer>
</configuration>

Regards, Uros

like image 103
Uroš Goljat Avatar answered Aug 07 '26 07:08

Uroš Goljat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!