webforms - 验证码图像未以 Sitecore Web 表单呈现给营销人员

标签 webforms sitecore captcha web-forms-for-marketers

我正在使用“ 面向营销人员的 Web 表单 2.5 修订版 141014 ”,而 创建表格我正在服用验证码字段 , 但是 验证码图像未在前端呈现 .

Screenshot Link

我究竟做错了什么??

最佳答案

您是否按照安装后步骤中的要求修改了 Web.config?

  1. Add the following nodes to the Web.config:
    • for IIS 6.x under the configuration\system.web\httpHandlers node
    • for IIS 7.x and up under the configuration\system.webServer\handlers node


如果你这样做了,你会同时使用 WFFM 和 WeBlog 模块吗?

问题是微博使用 preprocessRequest 站点核心管道来解析 CaptchaImage。此管道没有准备好 session ,因此 WFFM 验证码(默认情况下将数据存储在 session 中)在这种设置中不起作用。

解决方案只是删除
<preprocessRequest>
  <processor patch:before="*[1]" type="Sitecore.Modules.WeBlog.Pipelines.CaptchaProcessor,Sitecore.Modules.WeBlog"/>
</preprocessRequest>

来自 WeBlog.config 文件。

关于webforms - 验证码图像未以 Sitecore Web 表单呈现给营销人员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28046065/

相关文章:

asp.net-mvc - 将 Web 表单 ASP.NET 应用程序迁移到 MVC

ASP.NET DropDownList SelectedValue 属性未立即设置

c# - 操纵形式. Action

PHP cURL 同时保存图像并获取 header 响应

javascript - Yodlee getMFAResponse 验证码字节数组

javascript - Recaptcha 无效请求 cookie

asp.net - 在新窗口中写入输出流

linq - Solr Facets : How to set Facet. 在代码中的 Sitecore.ContentSearch.Linq 中限制为 (-1) 无限

grid - Sitecore 7.1 Grid Designer 和添加控件

sitecore - 构建 TDS 项目时出现无效许可证异常