SecurityDemandFailException
This piece of code use to work however, now i get this error in my SiteFinity project ..
var pgs = App.WorkWith().Pages().Where(pk => pk.Name == root).Get().SingleOrDefault() as PageNode;
Hello Jon,
The anonymous user does not have permissions to see the page you are trying to get. This is why you get this error. The user you use ( or anonymous) should have view permissions over this page.
Kind regards,
Ivan Dimitrov
the Telerik team
All the pages in SiteFinity have permissions set at 'everyone' already. Could it possibly be something else ? Can you try the code yourself in the latest release of SiteFinity ? I'm not sure whats going on here . Any other ideas ?
Regards.
Jon
Hi Jon,
If I have "View" permissions the code below works fine. You can try this by authenticating yourself with an administrator and then executing the code.
Regards,
Ivan Dimitrov
the Telerik team