×

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 Exception occurs while assigning the 'XpandListView, ... ReportModuleBase.Report

  • larsPL
  • larsPL's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 months 5 days ago - 5 months 5 days ago #11640 by larsPL
Hi All,

we got this error after Migration from 17.1.7 to V18.1.2 DevExpress and Xpand.

Why this error raise?
I have nothing found in devexpress what's-new 18.1 that gets a topic to ReportDataV2 instead ReportData.

Error Msg from WEBUI:
Exception occurs while assigning the 'XpandListView, ID:MDO_ListView_All' view to XpandWebWindow:
The 'DevExpress.Persistent.BaseImpl.ReportDataV2' report data type is not registered within the business model. Please check the ReportModuleBase.ReportDataType property.

Error in Error Log:

at DevExpress.ExpressApp.Frame.SetView(View view, Boolean updateControllers, Frame sourceFrame, Boolean disposeOldView)
at DevExpress.ExpressApp.Web.ShowViewStrategy.ShowViewInCurrentWindow(ShowViewParameters parameters, ShowViewSource showViewSource)
at DevExpress.ExpressApp.Frame.ProcessActionCreatedView(ActionBaseEventArgs e)
at DevExpress.ExpressApp.Actions.ActionBase.OnProcessCreatedView(ActionBaseEventArgs e)
at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)
InnerException:

Type: ArgumentException
Message: The 'DevExpress.Persistent.BaseImpl.ReportDataV2' report data type is not registered within the business model. Please check the ReportModuleBase.ReportDataType property.
Data: 0 entries
Stack trace:

at DevExpress.ExpressApp.ReportsV2.ApplicationReportObjectSpaceProvider.CreateObjectSpace(Type type)
at DevExpress.ExpressApp.ReportsV2.ReportsStorage.CollectInplaceReportsData()
at DevExpress.ExpressApp.ReportsV2.InplaceReportsCacheHelper.CollectAllInplaceReportsData()
at DevExpress.ExpressApp.ReportsV2.InplaceReportsCacheHelper.EnsureCache()
at DevExpress.ExpressApp.ReportsV2.InplaceReportsCacheHelper.GetReportDataInfoList(Type targetObjectType)
at DevExpress.ExpressApp.ReportsV2.PrintSelectionBaseController.Initialize()
at System.EventHandler.Invoke(Object sender, EventArgs e)
at DevExpress.ExpressApp.View.OnControlsCreated()
at Xpand.ExpressApp.XpandListView.OnControlsCreated() in C:\Release181\Xpand\Xpand.ExpressApp\Xpand.ExpressApp\XpandListView.cs:line 35
at DevExpress.ExpressApp.View.CreateControls()
at DevExpress.ExpressApp.Web.Controls.ViewSiteControl.SetView(View view)
at DevExpress.ExpressApp.Web.Templates.BaseXafPage.SetView(View view)
at DevExpress.ExpressApp.Frame.SetTemplateView(View view)
at DevExpress.ExpressApp.Frame.SetView(View view, Boolean updateControllers, Frame sourceFrame, Boolean disposeOldView)
InnerException is null

Loaded assemblies..
----

We have both Reports Typs in aout DB Old and new V2.

cheers Lars
Last edit: 5 months 5 days ago by larsPL.
More
5 months 4 days ago #11642 by Tolis
Hi Lars,

It is not fixed yet but you can find a workaround at www.expandframework.com/forum/8-discussi...eportv2.html?start=6 , let me know if it worked well for you

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
  • larsPL
  • larsPL's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 months 4 days ago #11643 by larsPL
Hi Tolis,

thanks. I use a XAF WebApp not win. Where i need to add this

ApplicationReportObjectSpaceProvider.ContextApplication ?

Thank you lars
  • larsPL
  • larsPL's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
5 months 4 days ago #11644 by larsPL
Hi Tolis,

in WebApplication.cs i add this :

protected override void OnSetupComplete()
{
base.OnSetupComplete();
ApplicationReportObjectSpaceProvider.ContextApplication = this;
}

after first deployment this rains no error.. but this means sometime not that all is well. so please validate my idea. Cheers lars
More
5 months 4 days ago #11645 by Tolis
use this code in your agnostic module

public override void Setup(XafApplication application){
base.Setup(application);
application.SetupComplete+=ApplicationOnSetupComplete;
}

private void ApplicationOnSetupComplete(object sender, EventArgs e){
ApplicationReportObjectSpaceProvider.ContextApplication = Application;
}

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.221 seconds