×

Notice

The forum is in read only mode.
×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon InvalidOperationException

  • melih.yilman
  • melih.yilman's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 2 weeks ago - 1 year 2 weeks ago #11556 by melih.yilman
InvalidOperationException was created by melih.yilman
Hi tolis.
I had tried to change startupnavigationitem and i got this error

 

 



ManageMind 
  



Application Error


We are currently unable to serve your request: http://localhost:90/default.aspx.
 We apologize, but an error occurred and your request could not be completed.
 You could go back and try again , or return to the previous page , or retry your request: http://localhost:90/default.aspx.

 
Error details
Hide Error details                                                             Error ID: 48040cf3-a7c3-4131-8aea-1e4f67f61465
Date: 3.04.2018 12:59:26
Request details:
  Url: http://localhost:90/default.aspx
  Url referrer: http://localhost:90/Login.aspx?ReturnUrl=/
  SessionID: m1z3zckivepvwvqyvh0omfvf
  Request type: GET
  User agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko
  User IP: ::1
  User: Polimed1
  Authenticated user: *
================================================================================
The error occurred:

	Type:       HttpUnhandledException
	Message:    Exception of type 'System.Web.HttpUnhandledException' was thrown.
	Data:       1 entries
			'ASPIMPERSONATING'		''
	Stack trace:

   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.default_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
	----------------
	InnerException:

			Type:       InvalidOperationException
			Message:    Exception occurs while activating the 'Xpand.ExpressApp.Security.Controllers.ShowNavigationItemController' controller:
Unable to cast object of type 'DevExpress.Xpo.XPCollection' to type 'DevExpress.ExpressApp.ProxyCollection'.
			Data:       0 entries
			Stack trace:

   at DevExpress.ExpressApp.Window.ActivateControllers()
   at DevExpress.ExpressApp.Window..ctor(XafApplication application, TemplateContext context, ICollection`1 controllers, Boolean isMain, Boolean activateControllersImmediately)
   at DevExpress.ExpressApp.Web.WebWindow..ctor(XafApplication application, TemplateContext context, ICollection`1 controllers, Boolean isMain, Boolean activateControllersImmediately)
   at Xpand.ExpressApp.Web.XpandWebApplication.CreateWindowCore(TemplateContext context, ICollection`1 controllers, Boolean isMain, Boolean activateControllersImmediatelly)
   at DevExpress.ExpressApp.XafApplication.CreateWindow(TemplateContext context, ICollection`1 controllers, Boolean createAllControllers, Boolean isMain, View view)
   at DevExpress.ExpressApp.Web.WebApplication.CreateMainWindow()
   at DevExpress.ExpressApp.Web.WebApplication.GetMainWindowByCurrentContext(Page page)
   at DevExpress.ExpressApp.Web.WebApplication.GetRequestedWindow(Page page)
   at DevExpress.ExpressApp.Web.WebApplication.CreateControlsCore(Page page)
   at DevExpress.ExpressApp.Web.WebApplication.CreateControls(Page page)
   at DevExpress.ExpressApp.Web.Templates.BaseXafPage.CreateControls()
   at DevExpress.ExpressApp.Web.Templates.BaseXafPage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
			----------------
			InnerException:

					Type:       InvalidCastException
					Message:    Unable to cast object of type 'DevExpress.Xpo.XPCollection' to type 'DevExpress.ExpressApp.ProxyCollection'.
					Data:       0 entries
					Stack trace:

   at Xpand.Persistent.Base.General.Controllers.NavigationItemsController.OnCustomInitializeItems(Object sender, HandledEventArgs handledEventArgs)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at DevExpress.ExpressApp.SystemModule.ShowNavigationItemController.InitializeItems()
   at DevExpress.ExpressApp.SystemModule.ShowNavigationItemController.OnActivated()
   at DevExpress.ExpressApp.Controller.activeList_ResultValueChanged(Object sender, BoolValueChangedEventArgs e)
   at DevExpress.ExpressApp.Utils.BoolList.OnResultValueChanged(Boolean oldResultValue, Boolean resultValue)
   at DevExpress.ExpressApp.Utils.BoolList.EndUpdate()
   at DevExpress.ExpressApp.WindowController.SetWindow(Window newWindow)
   at DevExpress.ExpressApp.Window.ActivateControllers()
					InnerException is null





 
Last edit: 1 year 2 weeks ago by melih.yilman.
More
1 year 2 weeks ago - 1 year 2 weeks ago #11558 by Tolis
Replied by Tolis on topic InvalidOperationException
Hi,

Unfortunately the info you posted is not enough to guess which configuration might cause this problem. I can only tell that you use the XpandSecurity module but myeffort to repro using the XpandSecurityTester solution failed. So, if you provide more details I might be able to respond better

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
Last edit: 1 year 2 weeks ago by Tolis.
  • melih.yilman
  • melih.yilman's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 year 2 weeks ago #11559 by melih.yilman
Replied by melih.yilman on topic InvalidOperationException
Hi,
i wanna change NavigationItem visibilty false for one user. I had changed that navigationItem visiblity on UserModelDifference object and i just opened web application and got this error
More
1 year 2 weeks ago #11560 by Tolis
Replied by Tolis on topic InvalidOperationException
how hard is it to post a sample ? I still not certain what you do and if eXpand is to blame or your app configuration

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
Moderators: expand
Time to create page: 0.200 seconds