Note that there are some explanatory texts on larger screens.

plurals
  1. PO.NET ReportViewer Error - Only when running from Server, not from Visual Studio IDE
    text
    copied!<p>I am getting client rendering error for one of my report. I am getting this error only when running from our Testing Server, the report runs fine in my development environment (i.e from my local machine Visual Studio IDE).</p> <p>Below are the details of the error. I am totally stuck as I am not able to make anything out of the stack trace. What should be my next step?</p> <p><strong>ASPX Code:</strong></p> <pre><code>&lt;rsweb:ReportViewer ID="rptvwReport" runat="server" InteractiveDeviceInfos="(Collection)"&gt; &lt;LocalReport ReportPath="Reports\ChartReport.rdlc"&gt;&lt;/LocalReport&gt; &lt;/rsweb:ReportViewer&gt; </code></pre> <p><strong>ASPX.CS Code:</strong></p> <pre><code>ReportDataSource rdsReport = new ReportDataSource(); rdsReport.Value = myDataList;//List&lt;Data&gt; rdsReport.Name = "DS"; rptvwReport.LocalReport.ReportPath = HttpContext.Current.Request.MapPath(HttpContext.Current.Request.ApplicationPath) + @"/Reports/ChartReport.rdlc"; rptvwReport.LocalReport.DataSources.Add(rdsReport); rptvwReport.LocalReport.Refresh(); </code></pre> <p><strong>Note:</strong> I am using Visual Studio 2010 &amp; SQL Server 2008. For testing purpose I am using same database for both Development &amp; Testing environment.</p> <blockquote> <p><em><strong>Error Message:</strong> An error occurred during client rendering.</em></p> <p><em><strong>Inner Exception:</strong> Object reference not set to an instance of an object.</em> </p> <p><em><strong>StackTrace:</strong> at Microsoft.Reporting.WebForms.LocalHtmlRenderer.Render(NameValueCollection deviceInfo, PageCountMode pageCountMode, ReportControlSession reportControlSession, CreateAndRegisterStream streamCallback, String&amp; scrollScript, String&amp; pageStyle) at Microsoft.Reporting.WebForms.ReportControlSession.RenderReportHTML4(NameValueCollection deviceInfo, PageCountMode pageCountMode, String&amp; scrollScript, String&amp; pageStyle) at Microsoft.Reporting.WebForms.ReportControl.RenderReport(ReportControlSession session, String viewerInstanceIdentifier, PageCountMode pageCountMode, Int32 pageNumber, InteractivityPostBackMode interactivityMode, SearchState searchState, String replacementRoot, String hyperlinkTarget, ScrollTarget scrollTarget, String alertMessage, DeviceInfoCollection initialDeviceInfos, String browserMode, Boolean sizeToContent) at Microsoft.Reporting.WebForms.ReportArea.RenderReport(ReportControlSession session, String viewerInstanceIdentifier, PageCountMode pageCountMode, Int32 pageNumber, InteractivityPostBackMode interactivityMode, SearchState searchState, String replacementRoot, String hyperlinkTarget, ScrollTarget scrollTarget, String alertMessage, DeviceInfoCollection initialDeviceInfos, String browserMode, Boolean sizeToContent) at Microsoft.Reporting.WebForms.ReportViewer.RenderReport(Boolean updateDocMap) at Microsoft.Reporting.WebForms.ReportViewer.OnPreRender(EventArgs e)</em></p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload