2013-10-19 21 views
0

Bin文件夾包含圖形驗證碼不工作的網上

MSCaptcha.dll 
MSCaptcha.xml 

html頁面包含

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="captcha.aspx.cs" Inherits="_Default" %> 
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="CaptchaImage" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
<title></title> 
</head> 
<body> 
<form id="form1" runat="server"> 
<div> 
    <CaptchaImage:CaptchaControl ID="CaptchaControl2" runat="server" /> 

</div> 
</form> 
</body> 
</html> 

Web配置

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

我已經做了LL的事情如圖本地主機上

http://www.msdotnet.co.in/2012/08/how-to-add-captcha-image-in-aspnet.html

及其運行正常,但在網上的顯示驗證碼文本而不是圖像。 應我該怎麼辦

回答

0

我用

Google Captcha : http://www.google.com/recaptcha/captcha 

這將任何Web服務器上運行