当我尝试在TDS项目中从Sitecore获取一些项目时,我收到此错误:
"已添加具有相同密钥的项目.与TDS服务通信时出错.请参阅Sitecore服务器上的应用程序异常日志以获取更多详细信息."
奇怪的是,该项目最终被添加到TDS项目中.我也在使用自定义数据提供程序.
我到现在为止尝试过的事情:
我使用的是最新版本的Sitecore - 7.2(rev.140228)和最新版本的WFFM - 2.4 rev.140923.所以问题是无论何时我尝试提交表单,无论我有什么样的保存操作,Sitecore都会抛出异常:
你调用的对象是空的.
描述:发生了未处理的异常.
异常详细信息:System.NullReferenceException:未将对象引用设置为对象的实例.
堆栈跟踪:
[NullReferenceException: Object reference not set to an instance of an object.]
Sitecore.Forms.Mvc.Controllers.ModelBinders.FormModelBinder.BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) +571
System.Web.Mvc.ControllerActionInvoker.GetParameterValue(ControllerContext controllerContext, ParameterDescriptor parameterDescriptor) +457
System.Web.Mvc.ControllerActionInvoker.GetParameterValues(ControllerContext controllerContext, ActionDescriptor actionDescriptor) +152
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +641
Run Code Online (Sandbox Code Playgroud)
一些额外的信息.最新版本的WFFM支持MVC所以在这种情况下我使用cshtml布局.这是博客文章,其中描述了如何使用MVC - 这虽然它适用于以前版本的SC,但无关紧要,该解决方案适用于最新版本.
sitecore submit nullreferenceexception web-forms-for-marketers