I hope someone can help me. I've been struggling with this issue for a couple of days. Any guidance will be appreciated.
I have an ASPX page with a ReportViewer component. Basically that's all there is on the page (the ASPX is included further down). This is served on IIS 7.5 on a Windows Server 2003 box.
I have 3 reports that I can view from this page. The first report always works - the full report renders and the control buttons (export, print, next page, etc) all work fine.
However, on the other 2 reports I get a blank page rendered. Nothing is visible at all except for the scrollbar.
A bit bizarre because the first report does show correctly. Only the other two reports don't show.
So, I thought that maybe there was something wrong with the report files themselves - like another error can't be reported on screen for some reason. But I am able to render those reports directly via the SSRS management web. This screen below
is one of the ones that fails via ReportViewer but works just fine in the SSRS management website.
I did go through other posts like these (http://forums.asp.net/t/1388924.aspx?ReportViewer+showing+an+Empty+report+on+Windows+Server+2008
and
http://stackoverflow.com/questions/16607184/reportviewer-control-returns-blank-page) , but the config issue they described isn't a problem because one report does work. And I tried all of the combinations of config they describe - classic mode / integrated
and even 32-bit / 64-bit. Broke it a few times (so that none worked), fixed it a few times (so that 1 out of 3 worked), but no closer to a fix for all reports.
Please help. I've removed and added the site, changed the config many times, tried different pipeline modes in the app pool, re-installed the report viewer redistributable. I'm not sure what else to try.
SimpleReportView.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SimpleReportView.aspx.cs" Inherits="SimpleReportView" %><%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %><!DOCTYPE html><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>Report Viewer</title><styletype="text/css">
h2 {font-size:14pt;font-family: Calibri,'Microsoft Sans Serif','Open Sans', sans-serif;font-weight: bold;}#divErrorDetails {font-size:11pt;font-family: Calibri,'Microsoft Sans Serif','Open Sans', sans-serif;}</style></head><body><formid="form1"runat="server"> <asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>
<divid="divReportViewer"runat="server"style="display: block;"><rsweb:ReportViewerID="rvMain"runat="server"ProcessingMode="Remote"Width="100%"Height="700"ShowExportControls="True"ShowFindControls="True"ShowParameterPrompts="False"ShowPromptAreaButton="True"ShowRefreshButton="True"BackColor="White"><ServerReportDisplayName="MainReport"Timeout="60000"/></rsweb:ReportViewer></div><divid="divError"runat="server"style="display: none;"><br/><br/><h2>There was an error generating this report</h2><divid="divErrorDetails"runat="server">Error details to go here</div></div></form></body></html>
Web.config
<?xml version="1.0" encoding="UTF-8"?><!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
--><configuration><connectionStrings></connectionStrings><system.web><compilationdebug="false"defaultLanguage="c#"targetFramework="4.0"></compilation><httpRuntime/><pages><namespaces></namespaces></pages><authenticationmode="Windows"></authentication><globalizationuiCulture="en-ZA"/></system.web><runtime><assemblyBindingxmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentityname="DotNetOpenAuth.Core"publicKeyToken="2780ccd10d57b246"/><bindingRedirectoldVersion="1.0.0.0-4.0.0.0"newVersion="4.1.0.0"/></dependentAssembly><dependentAssembly><assemblyIdentityname="DotNetOpenAuth.AspNet"publicKeyToken="2780ccd10d57b246"/><bindingRedirectoldVersion="1.0.0.0-4.0.0.0"newVersion="4.1.0.0"/></dependentAssembly></assemblyBinding></runtime><system.serviceModel><bindings><basicHttpBinding><bindingname="BasicHttpBinding_IWcfReportProcesses"/></basicHttpBinding></bindings><client><endpointaddress="http://servername/WcfReportProcesses.svc"binding="basicHttpBinding"bindingConfiguration="BasicHttpBinding_IWcfReportProcesses"contract="ReportProcessesWcf.IWcfReportProcesses"name="BasicHttpBinding_IWcfReportProcesses"/></client></system.serviceModel><system.webServer><handlers><addname="ReportViewerWebControlHandler"preCondition="integratedMode"verb="*"path="Reserved.ReportViewerWebControl.axd"type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/></handlers><modulesrunAllManagedModulesForAllRequests="true"/><validationvalidateIntegratedModeConfiguration="false"/></system.webServer></configuration>