在IIS8.5上显示动态生成的CAPTCHA映像 [英] Show dynamically generated CAPTCHA image on IIS8.5

查看:56
本文介绍了在IIS8.5上显示动态生成的CAPTCHA映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我的网页应用程序中有一些页面需要使用CAPTCHA图像。为了动态生成这些图像,我有一个< asp:Image>其中ImageUrl引用了CImage.aspx页面。



CImage.aspx页面在页面加载时随机生成CAPTCHA .jpg。问题是这在我的IIS8.5服务器上不起作用。在使用Visual Studio进行测试时,它在本地计算机上运行正常。



通过简单的谷歌搜索我可以找到,我相信这与IIS中的处理程序映射有关...但是,我无法弄清楚是什么我需要做才能让它工作......



我用于CAPTCHA的代码来自:在ASP.NET中使用C#的Captcha图像 [ ^ ]

解决方案

会员12135334写了

我相信这有部分答案,但我不擅长翻译VB ......

如果您的主要问题只是翻译,您可以轻松自动完成:代码解释,C#到VB.NET [ ^ ]。



我想强调使用开源ILSpy进行离线翻译的简单和优质,但是要使用它,你需要把你需要的所有代码都用到在某个项目中,构建一个程序集,然后用ILSpy反汇编它。质量和可靠性非常值得付出努力。



-SA


我相信这有一部分答案但我并不擅长翻译VB ... 用于ASP.NET的CAPTCHA服务器控件 [ ^ ]


Hello,

I have some pages on my web application that require the use of CAPTCHA images. In order to dynamically generate these images, I have a <asp:Image> which has the ImageUrl referencing the CImage.aspx page.

The CImage.aspx page randomly generates the CAPTCHA .jpg upon page load. The problem is that this doesn't not work on my IIS8.5 server. It works just fine on my local machine when testing with Visual Studio.

From what I can find with simple google searches, I believe this has to do with the Handler Mappings in IIS... However, I could not quite figure out what I needed to do to get it to work...

The code I'm using for the CAPTCHA comes from: Captcha Image using C# in ASP.NET[^]

解决方案

Member 12135334 wrote

I believe this has part of the answer but I'm not great at translating the VB…

If your main problem is just translation, you can easily do it automatically: Code Interpretation, C# to VB.NET[^].

I would like to emphasize the easy and good quality of the off-line translation with open-source ILSpy, but to use it, you will need to put all the code you need to use in some project, build an assembly and then disassemble it with ILSpy. The quality and reliability well worth the effort.

—SA


I believe this has part of the answer but I'm not great at translating the VB ... A CAPTCHA Server Control for ASP.NET[^]


这篇关于在IIS8.5上显示动态生成的CAPTCHA映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆