我用Mscaptcha在我的网站上显示。它在本地运行良好,但图片未显示在服务器中。为什么?Mscaptcha在当地工作的罚款,但照片是不是在服务器
我的代码在web.config中:
<system.webServer>
<handlers>
<add name="MSCaptcha" verb="GET" path="CaptchaImage.axd" type="MSCaptcha.CaptchaImageHandler, MSCaptcha"/>
</handlers>
</system.webServer>
中的.aspx
:
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<cc1:CaptchaControl ID="CaptchaControl1" runat="server" Height="50px"
Width="180px" CaptchaLength="5" BackColor="White"
EnableViewState="False" />
感谢。
我斗胆猜测 - 是你的服务器实际上是在IIS集成模式下运行?如果不是,则必须使用'system.web/httpHandlers'而不是'system.webServer/handlers' config部分。 – Luaan
现在检查它 – Farzaneh
它的工作,谢谢:) – Farzaneh