Reports cant be viewed (HTML5 report viewer)

StatusIDPriorityType
Closed36366BlockerBug
Profile Reply
keskinoz Client

Hello,
I use XAF 18.1.6 and Xafari 18.1.6011 in my ASP.NET application and also use HTML5 as reportViewerType in the WebApplication:

"this.reportsAspNetModuleV21.ReportViewerType = ReportViewerTypes.HTML5;"

but the viewer waits (as in the screenshot) and in the log file I see that null a NullReference exception is raised in Xafari.BC.XafariBCModule.security_CustomizeRequestProcessors event handler.

Mr. Gosha from the Developer Express Support says about this issue that: "I assume that they use our ValueManager class in this handler
to obtain certain data. This class uses ASP.NET Session internally to store values. When the HTML5 Report Viewer is used,
this Session does not exist. I suggest you to contact Xafari team so that they take a look at their code in this handler
and change it accodingly."

Here is the log:

The error occurred:

Type: Exception
Message: Error when trying to populate the datasource. The following exception was thrown:
Object reference not set to an instance of an object.
Data: 0 entries
Stack trace:

at DevExpress.XtraPrinting.PrintingSystemBase.OnCreateDocumentException(ExceptionEventArgs args)
at DevExpress.XtraReports.UI.XtraReport.TryCreateDocument(Single progressRange, Boolean buildPagesInBackground)
at DevExpress.XtraReports.Web.WebDocumentViewer.Native.Services.DocumentBuilder.c__DisplayClass3.b__2()
----------------
InnerException:

Type: DataRetrievalException
Message: Error when trying to populate the datasource. The following exception was thrown:
Object reference not set to an instance of an object.
Data: 0 entries
Stack trace:

at DevExpress.XtraReports.Native.DataSourceFiller.Execute()
at DevExpress.XtraReports.UI.XtraReportBase.FillDataSources(Boolean skipIfFilled)
at DevExpress.XtraReports.UI.XtraReport.OnBeforePrint(PrintEventArgs e)
at DevExpress.XtraReports.UI.XtraReport.TryCreateDocumentCore(Single progressRange, Boolean buildPagesInBackground)
at DevExpress.XtraReports.UI.XtraReport.TryCreateDocument(Single progressRange, Boolean buildPagesInBackground)
----------------
InnerException:

Type: NullReferenceException
Message: Object reference not set to an instance of an object.
Data: 0 entries
Stack trace:

at Xafari.BC.XafariBCModule.security_CustomizeRequestProcessors(Object sender, CustomizeRequestProcessorsEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at DevExpress.ExpressApp.Security.SecurityStrategy.OnCustomizeRequestProcessors(IDictionary`2 processors, IPermissionDictionary permissionsDictionary)
at DevExpress.ExpressApp.Security.SelectDataSecurityProvider.OnCustomizeRequestProcessors(IDictionary`2 processors, IPermissionDictionary permissionsDictionary)
at DevExpress.ExpressApp.Security.SelectDataSecurityProvider.CreateProcessors(IObjectSpace objectSpace)
at DevExpress.ExpressApp.Security.SelectDataSecurityProvider.CreateSelectDataSecurity(IObjectSpace objectSpace)
at DevExpress.ExpressApp.Security.SecurityStrategy.CreateSelectDataSecurityCore(IObjectSpace objectSpace)
at DevExpress.ExpressApp.Security.SecurityStrategy.CreateSelectDataSecurity(IObjectSpace objectSpace)
at DevExpress.ExpressApp.Security.ClientServer.SecuredObjectSpaceProvider.GetSecuredObjectLayer(UnitOfWork unitOfWork)
at DevExpress.ExpressApp.Security.ClientServer.SecuredObjectSpaceProvider.CreateUnitOfWork(IDataLayer dataLayer)
at DevExpress.ExpressApp.Xpo.XPObjectSpace..ctor(ITypesInfo typesInfo, XpoTypeInfoSource xpoTypeInfoSource, CreateUnitOfWorkHandler createUnitOfWorkDelegate)
at DevExpress.ExpressApp.Xpo.XPObjectSpaceProvider.CreateObjectSpaceCore()
at DevExpress.ExpressApp.Xpo.XPObjectSpaceProvider.CreateObjectSpace()
at DevExpress.ExpressApp.XafApplication.CreateObjectSpaceCore(Type objectType)
at DevExpress.ExpressApp.XafApplication.CreateObjectSpace(Type objectType)
at DevExpress.ExpressApp.ReportsV2.ReportObjectSpaceProvider.GetObjectSpace(Type objectType)
at DevExpress.Persistent.Base.ReportsV2.DataSourceBase.DevExpress.Data.IListAdapterAsync.BeginFillList(IServiceProvider servProvider, CancellationToken token)
at DevExpress.XtraReports.Native.ListAdapterFiller.FillAsynch(IListAdapterAsync asyncAdapter, IBackgroundService backgroundService, CancellationToken token)
at DevExpress.XtraReports.Native.ListAdapterFiller.ExecuteCore()
at DevExpress.XtraReports.Native.DataSourceFiller.Execute()
InnerException is null

Regards,
Keskinoz

Attached files:

Replies

User Description Posted On
MariyaVoytovich Agent

Hello keskinoz!

Sorry for the delay with the answer.
Thanks for reporting the issue.
In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue using our Demo. We do not have ideas why this error can occur on your machine either.
Could you please provide us with the following info?
1. A small demo project, reproducing the problem;
2. Detailed steps to reproduce the problem.
We want to help you and are looking forward to hearing from you.

Regards,
Mariya
On behalf of Xafari Client Services Team

keskinoz Client

Hello,
I'm closing my ticket.
We've found that some missing implementations on our side.
Thank you.

Keskinoz.

× This ticket is closed.

Write US