营销人员的Sitecore Web表单2.4在内容交付服务器上上传文件错误(WFFM) [英] Sitecore Web forms for marketers 2.4 file upload on content delivery server error (WFFM)

查看:77
本文介绍了营销人员的Sitecore Web表单2.4在内容交付服务器上上传文件错误(WFFM)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

针对营销人员的Web表格2.4问题

Web Form For Marketers 2.4 question

情况:从内容交付服务器提交表单时,带有文件上传字段的表单出现技术错误. Sofar我可以确定问题出在CD服务器上,因为没有对master数据库的引用.我赞赏WFFM文档指出FileUpload字段可用于主数据库,但与此同时,文档也提到了使用"remoteWfmService"的可能性.但是,即使在配置了Web服务之后,我在日志中仍然看到类似的空引用异常".是否可以在不将对Master数据库的引用添加到配置文件的情况下使WFFM工作?

Situation: I'm getting technical error on a form with file upload field when form is submitted from content delivery server. Sofar I could identify that the problem happens on CD servers because there is no reference to master database. I appreciate that WFFM documenation says that FileUpload field works with master database, but at the same the documentation also mentions possibility to use "remoteWfmService". But even after configuring web service I see similar "null reference exception" in logs. Is it possible to make WFFM work without adding reference to Master database to configuration files?

推荐答案

确保在CD服务器上的connectionStrings.config中有一个名为remoteWfmService的条目.它看起来应该类似于以下内容:

Make sure you have an entry in your connectionStrings.config called remoteWfmService on your CD server. It should look something similar to this:

<add name="remoteWfmService" connectionString="url=http://[masterserver]/sitecore%20modules/shell/Web%20Forms%20for%20Marketers/Staging/WfmService.asmx;user=[domain\username];password=[password];timeout=60000" />

请参见面向营销人员的网络表单的2.11.1节.

您还需要在/App_Config/Include/forms.config文件中更改以下设置.

You also need to change the following setting in /App_Config/Include/forms.config file.

<!-- Sets the name of the master database  -->
<setting name="WFM.MasterDatabase" value="web"/>

出于某种原因在参考指南中未提及此问题,但与

This isn't mentioned in the reference guide for some reason, but is looks like this same error as on this post by Alex Shyba.

这篇关于营销人员的Sitecore Web表单2.4在内容交付服务器上上传文件错误(WFFM)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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