This project is read-only.

Layer rules causing error

Jan 7, 2011 at 12:38 PM

I am trying to create a layer with a combination of authentication and url as per documentation.

The rule I am trying to create is (authenticated and url "~/notes*) but keep on getting the following error:

Editing layer failed: Attempt by method 'DynamicClass.CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, Orchard.Widgets.Controllers.AdminController, System.Object)' to access method 'System.Web.Mvc.Controller.View(System.Object)' failed.
I can however create the individual parts i.e. (authenticated) and (url "~/notes) but no combinations with syntax and, or, not.
Jan 8, 2011 at 8:22 AM

Thanks for the report. I've fixed this bug in the 1.x branch. In the mean time, one workaround it to disable the "Scripting" feature and enable the "DLR Scripting" feature instead.