security system error

StatusIDPriorityType
Closed38826BlockerBug
ProfileReply
GoranClient

Hi,
can you help to find out why is this happening?
while admin account has no problem accesing class user with lesser rights gets this error.

System.Exception: Error occurs ---> System.InvalidCastException: permissionRequest.TargetObject incompatible with targetObject.GetType()
at DevExpress.ExpressApp.Security.ServerPermissionRequestProcessor.GetTypeToProcess(Type targetType, Object targetObject)
at DevExpress.ExpressApp.Security.ServerPermissionRequestProcessor.IsGrantedCore(ServerPermissionRequest permissionRequest, IPermissionDictionary permissionDictionary, Boolean needToCheckBackReference, Boolean isAutoAssociationPermissionsChecking)
at Xafari.Security.XafariServerPermissionRequestProcessor.IsGrantedCore(ServerPermissionRequest permissionRequest, IPermissionDictionary permissions, Boolean needToCheckBackReference)
at DevExpress.ExpressApp.Security.ServerPermissionRequestProcessor.IsGranted(ServerPermissionRequest permissionRequest)
at DevExpress.ExpressApp.Security.ServerPermissionRequestProcessor.DevExpress.ExpressApp.Security.IPermissionRequestProcessor.IsGranted(IPermissionRequest permissionRequest)
at DevExpress.ExpressApp.Security.PermissionRequestProcessorWrapper.IsGranted(IPermissionRequest permissionRequest)
at DevExpress.ExpressApp.Security.SelectDataSecurity.IsGrantedCore(IPermissionRequest permissionRequest)
at DevExpress.ExpressApp.Security.SelectDataSecurity.IsGranted(IPermissionRequest permissionRequest)
at DevExpress.ExpressApp.Security.SecurityStrategy.IsGranted(IPermissionRequest permissionRequest)
at DevExpress.ExpressApp.SecuritySystem.IsGranted(IPermissionRequest permissionRequest)
at Ain.Module.Win.Controllers.WinListChangeMaskController.GridView_CustomRowCellEdit(Object sender, CustomRowCellEditEventArgs e)
at DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventHandler.Invoke(Object sender, CustomRowCellEditEventArgs e)
at DevExpress.XtraGrid.Views.Grid.GridView.GetRowCellRepositoryItem(Int32 rowHandle, GridColumn column)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CreateCellInfo(GridDataRowInfo ri, GridColumnInfoArgs columnInfo)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellDrawInfoCore(GridDataRowInfo ri, GridColumnInfoArgs ci, GridCellInfo cell, GridColumnInfoArgs nextColumn, Boolean calcEditInfo, GridRow nextRow, Boolean allowCache, Rectangle cellBounds)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellDrawInfo(GridDataRowInfo ri, GridColumnInfoArgs ci, GridCellInfo cell, GridColumnInfoArgs nextColumn, Boolean calcEditInfo, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowCellsDrawInfo(GridDataRowInfo ri, GridColumnsInfo columnsInfo, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcDataRow(GridDataRowInfo ri, GridRow row, GridRow nextRow)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcRowsDrawInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcGridInfo()
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.CalcCore(Graphics g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Grid.ViewInfo.GridViewInfo.Calc(Graphics g, Rectangle bounds)
at DevExpress.XtraGrid.Views.Base.ColumnView.DoInternalLayout()
at DevExpress.XtraGrid.Views.Base.ColumnView.CalculateLayout()
at DevExpress.XtraGrid.Views.Grid.GridView.LayoutChanged()
at DevExpress.XtraGrid.Views.Base.BaseView.EndUpdateCore(Boolean synchronized)
at DevExpress.XtraGrid.GridControl.EndUpdate(Boolean synchronized)
--- End of inner exception stack trace ---
at DevExpress.XtraGrid.GridControl.EndUpdate(Boolean synchronized)
at DevExpress.XtraGrid.GridControl.EndUpdate()
at DevExpress.ExpressApp.Win.Editors.WinColumnsListEditor.gridDataSourceManager_DataSourceChanged(Object sender, EventArgs e)
at DevExpress.ExpressApp.Win.Editors.XafGridControlDataSourceAdapter.OnControlDataSourceChanged()
at DevExpress.ExpressApp.Win.Editors.XafGridControlDataSourceAdapter.AssignDataSourceToGridControl(Object dataSource)
at DevExpress.ExpressApp.Win.Editors.XafGridControlDataSourceAdapter.TryAssignDataSourceToGridControl()
at DevExpress.ExpressApp.Win.Editors.XafGridControlDataSourceAdapter.set_DataSource(Object value)
at DevExpress.ExpressApp.Win.Editors.WinColumnsListEditor.OnDataSourceChanged()
at DevExpress.ExpressApp.ListView.RefreshEditorDataSource()
at DevExpress.ExpressApp.ListView.collectionSource_CollectionChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at DevExpress.ExpressApp.CollectionSourceBase.OnCollectionChanged()
at DevExpress.ExpressApp.CollectionSourceBase.ResetCollection(Boolean updateObjectsInCriteria)
at DevExpress.ExpressApp.PropertyCollectionSource.set_MasterObject(Object value)
at DevExpress.ExpressApp.Editors.ListPropertyEditor.ReadValueCore()
at DevExpress.ExpressApp.Editors.PropertyEditor.ReadValue()
at DevExpress.ExpressApp.Editors.PropertyEditor.UpdateEditorState()
at DevExpress.ExpressApp.Editors.PropertyEditor.OnCurrentObjectChanged()
at DevExpress.ExpressApp.Editors.ListPropertyEditor.OnCurrentObjectChanged()
at DevExpress.ExpressApp.Editors.ViewItem.set_CurrentObject(Object value)
at DevExpress.ExpressApp.DetailView.set_CurrentObject(Object value)
at DevExpress.ExpressApp.ListView.UpdateEditFrame(Object currentObject)
at DevExpress.ExpressApp.ListView.DoOnListEditorFocusedObjectChanged()
at DevExpress.ExpressApp.ListView.listEditor_FocusedObjectChanged(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at DevExpress.ExpressApp.Editors.ListEditor.RaiseFocusedObjectChanged()
at Xafari.Editors.Win.XafariGridListEditor.OnFocusedObjectChanged()
at DevExpress.ExpressApp.Win.Editors.WinColumnsListEditor.view_FocusedRowObjectChanged(Object sender, FocusedRowObjectChangedEventArgs e)
at DevExpress.XtraGrid.Views.Base.FocusedRowObjectChangedEventHandler.Invoke(Object sender, FocusedRowObjectChangedEventArgs e)
at DevExpress.XtraGrid.Views.Base.ColumnView.RaiseFocusedRowObjectChanged(FocusedRowObjectChangedEventArgs e)
at DevExpress.XtraGrid.Views.Base.ColumnView.OnCurrentControllerRowObjectChanged(CurrentRowChangedEventArgs e)
at DevExpress.XtraGrid.Views.Grid.GridView.OnCurrentControllerRowObjectChanged(CurrentRowChangedEventArgs e)
at DevExpress.XtraGrid.Views.Base.ColumnView.DevExpress.Data.IDataControllerCurrentSupport.OnCurrentControllerRowObjectChanged(CurrentRowChangedEventArgs e)
at DevExpress.Data.BaseGridController.OnCurrentControllerRowObjectChanging(Object oldObject, Object newObject, Int32 level, Int32 sourceIndex)
at DevExpress.Data.BaseGridController.SetCurrentControllerRowObject(Object value, Int32 level, Int32 sourceIndex)
at DevExpress.Data.BaseGridController.CheckCurrentControllerRowObject(ListChangedEventArgs e)
at DevExpress.Data.CurrencyDataController.CheckCurrentControllerRowObject(ListChangedEventArgs e)
at DevExpress.Data.BaseGridController.OnCurrentControllerRowChanged()
at DevExpress.Data.BaseGridController.OnCurrentControllerRowChanging(Int32 oldControllerRow, Int32 newControllerRow)
at DevExpress.Data.BaseGridController.set_CurrentControllerRow(Int32 value)
at DevExpress.XtraGrid.Views.Grid.GridView.DoChangeFocusedRow(Int32 currentRowHandle, Int32 newRowHandle, Boolean raiseUpdateCurrentRow)
at DevExpress.XtraGrid.Views.Base.ColumnView.DoChangeFocusedRowInternal(Int32 newRowHandle, Boolean updateCurrentRow)
at DevExpress.XtraGrid.Views.Base.ColumnView.set_FocusedRowHandle(Int32 value)
at DevExpress.XtraGrid.Views.Grid.Handler.GridRegularRowNavigator.OnMouseDown(GridHitInfo hitInfo, DXMouseEventArgs e)
at DevExpress.XtraGrid.Views.Grid.Handler.GridHandler.OnMouseDown(MouseEventArgs ev)
at DevExpress.Utils.Controls.BaseHandler.ProcessEvent(EventType etype, Object args)
at DevExpress.XtraGrid.Views.Base.Handler.BaseViewHandler.ProcessEvent(EventType etype, Object args)
at DevExpress.XtraGrid.GridControl.OnMouseDown(MouseEventArgs ev)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
at DevExpress.XtraGrid.GridControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello goran!

We don’t know what the mistake is. Perhaps this is a DevExpress error.
Look for similar errors in the DevExpress support system.
( maybe this ticket will help you How to avoid the "permissionRequest.TargetObject incompatible with targetObject.GetType()" error thrown from DeleteObjectsViewController when displaying several ITreeNode implementors in Tree List Editors)

You can also provide us with more information about your mistake and try to help you.

Regards,
Mariya
On behalf of Xafari Client Services Team

× This ticket is closed.

Write US