c# - 如何使用 Sitecore 和 Webforms For Marketers (WFFM) 解决验证码图像丢失问题?

标签 c# asp.net sitecore web-forms-for-marketers

我将 Sitecore 与 Webforms For Marketers (WFFM) 结合使用。我正在使用标准包含的验证码表单字段。当我按 F5(页面刷新)时,不会显示验证码刷新和音频按钮。到第二个 F5 时,验证码刷新和音频按钮再次出现在屏幕上。

当我直接访问验证码刷新图像时,页面刷新 (F5) 出现了同样的问题,但现在有更详细的错误消息。

The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset

[ArgumentOutOfRangeException: The UTC time represented when the offset is applied must be between year 0 and 10,000.
Parameter name: offset]
   System.DateTimeOffset..ctor(DateTime dateTime) +13946944
   Sitecore.Resources.Media.Streaming.Preconditions.IfModifiedSincePrecondition.CheckRequestPreconditionAndSetResponseStatus(HttpContext context) +149
   Sitecore.Resources.Media.Streaming.RangeRetrievalResponse.ExecuteRequest(HttpContext context) +93
   Sitecore.Support.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context, MediaRequest request, Media media) +716
   Sitecore.Resources.Media.MediaRequestHandler.DoProcessRequest(HttpContext context) +477
   Sitecore.Resources.Media.MediaRequestHandler.ProcessRequest(HttpContext context) +67
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165

网址 = http://sitecore.local/~/media/Web营销人员表格/图标/refresh.png

我已经在互联网上搜索了这个特定问题,但找不到针对这种情况的解决方案(Sitecore 和 WFFM)。有人有解决方案吗?

非常感谢。

乔迪

2014 年 2 月 27 日更新 - 我看到,通过无法正常工作的刷新或音频图像,Web 浏览器将此 header 添加到请求中。

If-Modified-Since   Mon, 01 Jan 0001 00:00:00 GMT

最佳答案

解决方案是在 Sitecore 媒体库中以所有语言创建图像(验证码刷新和音频图像)。这解决了问题。

关于c# - 如何使用 Sitecore 和 Webforms For Marketers (WFFM) 解决验证码图像丢失问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22036606/

相关文章:

C# 反射 - 递归类型参数的 MakeGenericType

c# - 无法在xml中的指定位置插入节点

c# - 从同一解决方案 C# 中的另一个项目引用 Web.Config 文件

sitecore - 实现 Sitecore Multisite Robots.txt 文件

c# - 替换 MailItem Body 中的文本

c# - Nunit 使用 .NET 3.5 测试异步代码

c# - 从 win 表单重定向到 Web 表单

asp.net - 从书签 AJAX 调用 asp

asp.net - 仅为 Sitecore 中的特定站点嵌入语言

javascript - 添加 WFFM 表单 - Jquery 问题