我将 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/