Reputation: 21
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
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 only pages excluded from access checks are:
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