Shilpa Channapati
Shilpa Channapati

Reputation: 21

Sitecore Access Denied Error on Browsing Datasource to associate content Page Editor

I see the below error message in the logs when I click on Browse Datasource when trying to associate content with a control.

Exception: Sitecore.Exceptions.AccessDeniedException Message: Access denied Source: Sitecore.Kernel at Sitecore.Web.UI.XamlSharp.Xaml.XamlPageHandlerFactory.CheckAccess(ControlUri uri) at Sitecore.Web.UI.XamlSharp.Xaml.XamlPageHandlerFactory.GetXamlPageHandler(HttpContext context, String appRelativeVirtualPath) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Upvotes: 1

Views: 363

Answers (1)

Martin Davies
Martin Davies

Reputation: 4456

I think the important part of the stack trace is the CheckAccess method. Examining the Sitecore code (XamlPageHandlerFactory class), I can see that the error is only thrown if the following criteria are met:

  • The requested page is not excluded from access checks.
  • The site is "shell"
  • The user is not authenticated

The only pages excluded from access checks are:

  • Sitecore.Shell.Applications.Analytics.VisitorIdentification
  • Sitecore.Shell.Applications.Analytics.Subscription

so as expected, your page definitely isn't excluded.

Since you are browsing for a datasource, I assume that the context site must be "shell".

So all that remains is that the authentication point. Could it be that your session expired before you opened the window, or that you were logged out for some other reason?

Upvotes: 1

Related Questions