今天我一直在寻找这个问题的解决之道,但我仍然没有找到根本原因。也许其他人遇到了同样的情况,并且能够解决这个问题。提前谢谢。
好的,基本上,我已经将我的客户端产品SC实例迁移到我的本地机器上,以便从8.0-U3升级到8.1-U2,并且在访问CM (内容编辑器、体验编辑器、发布和其他更多内容)方面已经启动和运行,日志记录的健康状况也相当好。
注意:我还没有开始模拟,所以它仍然在8.0-U3版本中。
直到我使用Experience (仍然不错)打开一个页面,并开始添加新组件(单击after按钮),然后在浏览器控制台日志中检查Palette.aspx 500内部服务器错误。
POST http://8.0-u3.sitecore.com/sitecore/shell/Applications/WebEdit/Palette.aspx 500 (Internal Server Error)因此,正如大多数好奇的开发人员所做的那样,我打开URL查看整个堆栈跟踪:
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)因此,我做了一些调查和调整,我评论了WebEdit调色板从Sitecore.AntiCSRF.config,只是为了检查是否有任何不同(似乎不是正确的解决方案)
我的自我论证:,为什么我要编辑这个?
<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)不幸的是,到目前为止,错误仍然存在,而且我仍然无法添加新组件,因为它返回了一个--出现了弹出的错误。
有没有人?
发布于 2018-01-09 16:49:47
我最近在我的环境中也经历过同样的问题。在我的例子中,这是因为在某些占位符中添加组件会破坏html结构并导致这个问题。
发布于 2016-04-29 14:46:58
看起来它在从占位符设置上允许的呈现解析Guid时遇到了问题。确保您只选择了有效的渲染。您可能需要查看原始值,以确保它是一个格式正确的管道分隔的Guid列表。
发布于 2017-10-02 14:17:13
当我们在布局页面上添加default.cshtml中的一个类时,就发生了这种情况。JS框架冲突
https://stackoverflow.com/questions/36936553
复制相似问题