×

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 after publishing

  • inma
  • inma's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 years 9 months ago - 2 years 9 months ago #9962 by inma
Exception after publishing was created by inma
My intention is to show a report regarding different objects space depending on the display name. I am looking for the Oid. Regarding to this, I have controled the ReportDataV2 Class to show different Reports, but I got a problem. When I debug in VisualStudio everything is OK, but when I publish in web and strat to work, I got the follow message,
"Exception occurs while assigning the 'DetailView, ID:' view to XpandPopupWindow:
Referencia a objeto no establecida como instancia de un objeto."

I hope you can help me. Thanks

I used the following code:


IObjectSpace objectSpace = ReportDataProvider.ReportObjectSpaceProvider.CreateObjectSpace(typeof(ReportDataV2));
IReportDataV2 reportData = objectSpace.FindObject<ReportDataV2>(CriteriaOperator.Parse(
"[Oid] = '" + astcab.OrdenTrabajo.TipoOrden.FormatoImpresoAST.Oid + "'"));
if (reportData != null)
{
string handle = ReportDataProvider.ReportsStorage.GetReportContainerHandle(reportData);


CriteriaOperator criteria = new BinaryOperator("ID", astcab.ID, BinaryOperatorType.Equal);
Frame.GetController<ReportServiceController>().ShowPreview(handle, criteria);

}
Attachments:
Last edit: 2 years 9 months ago by inma.
More
2 years 9 months ago #10043 by larsPL
Replied by larsPL on topic Exception after publishing
Hi Inma, may you can provide a code part to look into. Also we need the Xpand and DevExpress Versions you use.
Regards Lars
  • inma
  • inma's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 years 7 months ago #10229 by inma
Replied by inma on topic Exception after publishing
Hi Lars,

Sorry for the delay, I tried copy some code, but was too difficult.
I changed the project version to 16.1, and the expand version to 16.1.4.4 and everything is working now.

thanks
Inma
Moderators: expand
Time to create page: 0.182 seconds