今天我一直在寻找这个问题的解决方案,但我仍然没有找到根本原因的运气。也许其他人遇到相同的情况,并能够解决这个问题。提前致谢。Sitecore 8.0 Update-3 WebEdit Palette.aspx错误
好的,基本上我已经将我的一个客户端生产SC实例迁移到我的本地计算机上进行从8.0-U3到8.1-U2的升级仿真,并且它已经在访问CM(内容编辑器,体验编辑,发布等)以及伐木的健康状况相当不错。
需要注意的是:我还没有开始模拟,所以这仍是v.8.0-U3
直到我的使用体验编辑器(还不错),并开始添加新的组件打开一个页面(点击在此处添加按钮),然后,我在浏览器控制台日志中检查它之后,遇到Palette.aspx 500内部服务器错误。
POST http://8.0-u3.sitecore.com/sitecore/shell/Applications/WebEdit/Palette.aspx 500 (Internal Server Error)
因此,作为最好奇的开发商会做,我打开网址看到完整的堆栈跟踪:
Server Error in '/' Application.
Palette.aspx: unrecognized command ''
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Palette.aspx: unrecognized command ''
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[Exception: Palette.aspx: unrecognized command '']
Sitecore.Shell.Applications.WebEdit.Palette.OnPreInit(EventArgs e) +2380
System.Web.UI.Page.PerformPreInit() +46
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1251
我还检查SC日志文件,看看它告诉我:
16220 2016:04:29 17:37:12 ERROR Application error.
Exception: System.Web.HttpUnhandledException
Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Source: System.Web
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.sitecore_shell_applications_webedit_palette_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\bf95a62a\ceceb3fc\App_Web_mqggjnpz.2.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Nested Exception
Exception: System.FormatException
Message: Unrecognized Guid format.
Source: mscorlib
at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
at System.Guid..ctor(String g)
at Sitecore.Data.ShortID..ctor(String id)
at Sitecore.Data.ShortID.Parse(String value)
at Sitecore.Pipelines.ExecutePageEditorAction.ExecuteInsertRenderingArgs.<GetAllowedRenderingsIds>b__0(String id)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Sitecore.Pipelines.ExecutePageEditorAction.InsertRendering.InsertRenderingAt(DeviceDefinition device, RenderingDefinition renderingDefinition, Int32 insertPosition, IEnumerable`1 allowedRenderingsIds)
at Sitecore.Pipelines.ExecutePageEditorAction.InsertRendering.Process(PipelineArgs args)
at (Object , Object[])
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
at Sitecore.Pipelines.ExecutePageEditorAction.ExecutePageEditorActionPipeline.Run(ExecutePageEditorActionArgs args)
at Sitecore.Shell.Applications.WebEdit.Palette.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
所以我做了一些调查和调整,我注释掉从Sitecore.AntiCSRF.config的WebEdit调色板,只是为了检查是否有任何区别(好像不是正确的解决方案)
我的自相矛盾:为什么我必须编辑它?
<ignore contains="WebEdit/Palette"/>
以前的SC日志不存在了,但在下面有一个新的日志。
18404 2016:04:29 18:46:28 ERROR Application error.
Exception: Sitecore.Security.AntiCsrf.Exceptions.PotentialCsrfException
Message: CSRF form field is missing.
Source: Sitecore.Security.AntiCsrf
at Sitecore.Security.AntiCsrf.SitecoreAntiCsrfModule.RaiseError(Exception ex, HttpContext context)
at Sitecore.Security.AntiCsrf.SitecoreAntiCsrfModule.PreRequestHandlerExecute(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
遗憾的是,到现在为止,错误仍然持续存在,因为它返回一个发生错误弹出我仍然无法添加新的组件。
有人吗?