Permission denied exception

Topics: User Forum
Nov 26, 2008 at 12:38 PM
One of my users is getting the error below when she saves a new page without publishing. What do I need to do to allow her to save new pages without publishing them?

Server Error in '/' Application.

Permission denied

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: N2.Security.PermissionDeniedException: Permission denied

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[PermissionDeniedException: Permission denied]

   N2.Security.SecurityEnforcer.OnItemSaving(ContentItem item) +133

   N2.Security.SecurityEnforcer.ItemSavingEventHandler(Object sender, CancellableItemEventArgs e) +42

   System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0

   N2.Persistence.NH.ContentPersister.Invoke(EventHandler`1 handler, T args) +44

   N2.Persistence.NH.ContentPersister.Save(ContentItem unsavedItem) +82

   N2.Edit.EditManager.Save(IItemEditor itemEditor, IPrincipal user) +872

   N2.Web.UI.WebControls.ItemEditor.Save() +61

   N2.Edit.Edit.SaveVersion() +66

   N2.Edit.Edit.OnSaveUnpublishedCommand(Object sender, CommandEventArgs e) +34

   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +105

   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +132

   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11

   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

Nov 26, 2008 at 6:54 PM
Not sure about this. Any chance you have redefined roles in some way that would confuse N2?