Link to home
Start Free TrialLog in
Avatar of llj45
llj45

asked on

configure web config for captcha using IIS7

Hi,
  I found:
https://www.experts-exchange.com/questions/24170316/CaptchaImage.html
and
http://arcware.net/use-a-single-web-config-for-iis6-and-iis7/ .
  However, I still need help making the captcha example found at:
http://www.mondor.org/captcha.aspx
to work on IIS7 and .NET 3.5 .

  I followed the directions on mondor.org.  I was able to get this captcha to work on a local install of IIS 5.2 and .NET 3.5 on Windows XP SP 3.

  Currently, I have:
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ews" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
</modules>

<handlers accessPolicy="Read, Write, Script, Execute">
<add name="ews" verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
</handlers>
These pages are located on a private web server with a 10. IP address, not the local machine.  This server runs Windows Server 2008.

How should web config file be written to make the captcha appear on the credit payment page inside a larger system?

  Currently, the error in the browser is:
System.Configuration.ConfigurationErrorsException: MSCaptcha.CaptchaImageHandler, MSCaptcha does not implement IHttpModule.

Thanks, LLJ45
ASKER CERTIFIED SOLUTION
Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of llj45
llj45

ASKER

Hi, Siyamala
  This site is already created on the IIS 7 web server.  The site functions normally and properly except for displaying the captcha image.
Any suggestions along these lines using the information in my first post would be more helpful.
Thanks, LLJ45
Avatar of llj45

ASKER

Also, if you had access the web server, another possible solution would be to put the IIS7 web site's application pool into classic mode as opposed to integrated.