今天我一直在尋找這個問題的解決方案,但我仍然沒有找到根本原因的運氣。也許其他人遇到相同的情況,並能夠解決這個問題。提前致謝。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)
遺憾的是,到現在爲止,錯誤仍然持續存在,因爲它返回一個發生錯誤彈出我仍然無法添加新的組件。
有人嗎?