namespace TInvoice { using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using Telerik.Reporting; using Telerik.Reporting.Drawing; using System.Collections.Generic; /// <summary> /// Summary description for Invoice. /// </summary> internal partial class Invoice : Telerik.Reporting.Report { const int LINES_PER_PAGE = 17; public Invoice( ) { /// <summary> /// Required for telerik Reporting designer support /// </summary> InitializeComponent( ); // // TODO: Add any constructor code after InitializeComponent call // } internal Invoice( BL_TInvoice bl ) { //int inooflines; InitializeComponent( ); //_bl = bl; //_ilrep = new InvoiceLine( _bl ); //subReport1.ReportSource = _ilrep; //inooflines = _ilrep._bl.listinvlines.Count; //inoofpages = inooflines / LINES_PER_PAGE; //if ( inooflines != inoofpages * LINES_PER_PAGE ) // inoofpages++; //double fnet = 0; //for ( int i = 0; i < inoofpages; i++ ) { // int startindex = i * LINES_PER_PAGE; // int endindex = startindex + 16; // for ( int i1 = startindex; i1 <= endindex; i1++ ) { // if ( i1 < _ilrep._bl.listinvlines.Count ) // fnet += _ilrep._bl.listinvlines[ i1 ].amount; // } // listcf.Add( fnet ); //} }Hi,
My silverlight app works fine on my dev machine, but after deploying on IIS7 I have error at report viewer.
Exception details:
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.ReportViewer.Silverlight.ReportViewerModel.UpdateUI()
at Telerik.ReportViewer.Silverlight.ReportViewerModel.set_PageRoot(FrameworkElement value)
at Telerik.ReportViewer.Silverlight.ReportViewerModel.SetError(String message)
at Telerik.ReportViewer.Silverlight.ReportViewerModel.SetError(Exception ex)
at Telerik.ReportViewer.Silverlight.ReportViewerModel.OnListRenderingExtensionsCompleted(Object sender, ListRenderingExtensionsEventArgs e)
at Telerik.Reporting.Service.SilverlightClient.ReportServiceClient.OnListRenderingExtensionsCompleted(Object state)
The bin folder contains the following assemblies:
Could somebody help me?