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>

ウェブ構成

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

に示すように、すべてのことを行いました

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

ローカルホストでは問題なく実行されますが、オンラインでは画像の代わりにキャプチャテキストが表示されます。何をすればよいでしょうか

4

1 に答える 1