使用Umbraco 7.4.3版程序集:1.0.5948.18141 使用umbraco 7.4.3创建表单后,表单按预期工作,除非我们通过受保护的页面访问表单。表单显示,并允许用户交互,但我们无法从受保护的页面提交表单。
在umbraco论坛上提出了一个问题,建议找到修复程序,但此处未发布该修复程序的相关信息 - > https://our.umbraco.org/forum/umbraco-forms/78933-umbraco-forms-and-protected-pages, 我还在umbraco论坛上发布了一个关于这个问题的问题 - 没有回答。
从受保护的页面提交表单时的YSOD。下面的堆栈跟踪:
[NullReferenceException:对象引用未设置为的实例 宾语。] Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(字符串 cacheKey,Func1 getCacheItem,Nullable1 timeout,Boolean isSliding, CacheItemPriority优先级,CacheItemRemovedCallback removedCallback, CacheDependency依赖项)+825 Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(字符串 cacheKey,Func1 getCacheItem,Nullable1 timeout,Boolean isSliding, CacheItemPriority优先级,CacheItemRemovedCallback removedCallback, String [] dependentFiles)+200 Umbraco.Core.Cache.DeepCloneRuntimeCacheProvider.GetCacheItem(字符串 cacheKey,Func1 getCacheItem,Nullable1 timeout,Boolean isSliding, CacheItemPriority优先级,CacheItemRemovedCallback removedCallback, String [] dependentFiles)+183 Umbraco.Forms.Core.Cache.CacheProviderExtensions.GetCacheItem(IRuntimeCacheProvider provider,String cacheKey,Func1 getCacheItem,Nullable1 timeout, Boolean isSliding,CacheItemPriority priority, CacheItemRemovedCallback removedCallback,String [] dependentFiles) +541 Umbraco.Forms.Data.StringHelper.ParseMemberPlaceholders(String value,Object memberKey)+1990 Umbraco.Forms.Data.StringHelper.ParsePlaceHolders(HttpContext context, 记录,字符串值)+584 Umbraco.Forms.Data.StringHelper.ParsePlaceHolders(记录, 字符串值)+75 Umbraco.Forms.Core.Services.WorkflowService.ExecuteWorkflows(列表1 工作流程,RecordEventArgs e)+1158
Umbraco.Forms.Core.Services.WorkflowService.ExecuteWorkflows(实录 记录,表单表单,FormState状态,布尔编辑模式)+468
Umbraco.Forms.Web.Services.RecordService.Submit(记录记录,表格 形式)+704
Umbraco.Forms.Web.Controllers.UmbracoFormsController.SubmitForm(表 form,FormViewModel模型,Dictionary2状态,ControllerContext 上下文)+3103 Umbraco.Forms.Web.Controllers.UmbracoFormsController.GoForward(表 form,FormViewModel模型,Dictionary2状态)+339
Umbraco.Forms.Web.Controllers.UmbracoFormsController.HandleForm(FormViewModel model,Boolean captchaIsValid)+1283 lambda_method(Closure, ControllerBase,Object [])+ 1677 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext,IDictionary2参数)+217 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext,ActionDescriptor actionDescriptor,IDictionary2 参数)+39
System.Web.Mvc.Async.AsyncControllerActionInvoker.b__39(IAsyncResult的 asyncResult,ActionInvocation innerInvokeState)+12
System.Web.Mvc.Async.WrappedAsyncResult2.CallEndDelegate(IAsyncResult的 asyncResult)+139 System.Web.Mvc.Async.AsyncInvocationWithFilters.b3d()+112 System.Web.Mvc.Async。<> cDisplayClass46.b3f()+ 452 System.Web.Mvc.Async。<> cDisplayClass46.b3f()+ 452 System.Web.Mvc.Async。<> cDisplayClass46.b3f()+ 452 System.Web.Mvc.Async。<> cDisplayClass46.b3f()+ 452 System.Web.Mvc.Async。<> cDisplayClass46.b3f()+ 452 System.Web.Mvc.Async。<> cDisplayClass33.b32(IAsyncResult asyncResult) +15 System.Web.Mvc.Async。<> cDisplayClass2b.b1c()+37 System.Web.Mvc.Async。<> cDisplayClass21.b1e(IAsyncResult asyncResult) +241 System.Web.Mvc.Controller.b1d(IAsyncResult asyncResult,ExecuteCoreState innerState)+29 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult的 asyncResult)+111
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)+53 System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult的 asyncResult)+19 System.Web.Mvc.MvcHandler.b__5(IAsyncResult) asyncResult,ProcessRequestState innerState)+51 System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult的 asyncResult)+111 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606 System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously)+288
答案 0 :(得分:0)