Error with selecting image in Kentico Admin

Francis Carroll asked on May 5, 2023 12:31

Hey,

I am runninbg Kentio v13.0.101 using MVC5 and IIS10.

I am having an issue on our site where when we select an image/navigate in the media library from the Pages application it causes an error to occur and on refresh kicks the user out of the admin.

Here is the log that pops up in the admin:

Event ID:31144
Event type:Error
Event time:5/5/2023 11:13:27 AM
Source:Application_Error
Event code:EXCEPTION
Description:Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Exception type: System.Web.HttpUnhandledException
Stack trace:
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 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Message: The CSRF hidden field value didn't match the CSRF cookie value.

Exception type: CMS.Protection.Web.UI.CsrfException
Stack trace:
at CMS.Protection.Web.UI.CsrfProtection.ValidateCsrfTokens(Byte[] cookieToken, Byte[] hiddenFieldToken)
at CMS.Protection.Web.UI.CsrfProtection.ValidateTokenInPage(Byte[] csrfToken)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreInit(EventArgs e)
at CMS.UIControls.AbstractCMSPage.OnPreInit(EventArgs e)
at CMS.UIControls.CMSPage.OnPreInit(EventArgs e)
at CMSModules_Content_CMSDesk_Default.OnPreInit(EventArgs e) in C:..\CMS\CMSModules\Content\CMSDesk\Default.aspx.cs:line 152
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Machine name:..
Event URL:/CMSModules/Content/CMSDesk/Default.aspx
URL referrer:https://..CMSModules/Content/CMSDesk/Default.aspx
User agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

Would appriciate any help on this

Recent Answers


Brenden Kehren answered on May 5, 2023 15:16

Try accessing both the cms and mvc site with HTTPS or HTTP in the browser window.

If that doesn't fix it, try clearing your cookies and doing a hard refresh in the Admin.

0 votesVote for this answer Mark as a Correct answer

Francis Carroll answered on May 16, 2023 15:09

Hey,

We have tried that and that didnt help, i also tried resigning the macros to see if that would help and we still cant navigate through the media library without the admin throwing the above error and kicking the user out of the admin.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.