I'm using ReportViewer
10.0. In Google Chrome, the lines come with a broken image called blank.gif
. But IE and Firefox are working fine.
Here's an example with the images circled:
Any ideas on how to fix this?
I'm using ReportViewer
10.0. In Google Chrome, the lines come with a broken image called blank.gif
. But IE and Firefox are working fine.
Here's an example with the images circled:
Any ideas on how to fix this?
The current solution will mask the issue, but won't address the underlying problem, which is that when browsers besides IE are composing the request for the gif (which SSRS just uses to replace padding), they don't know to include the IterationId
query string parameter.
As SQL Reporting Services Viewer broken in Non-IE Browsers points out, if you're using the ReportViewer, you can fix this in your application routing under Application_BeginRequest
like this:
protected void Application_BeginRequest(object sender, EventArgs e)
{
// Original fix credit to Stefan Mohr
// Bug fix for MS SSRS Blank.gif 500 server error missing parameter IterationId
// https://connect.microsoft.com/VisualStudio/feedback/details/556989/
HttpRequest req = HttpContext.Current.Request;
if (req.Url.PathAndQuery.StartsWith("/Reserved.ReportViewerWebControl.axd") &&
!req.Url.ToString().ToLower().Contains("iteration") &&
!String.IsNullOrEmpty(req.QueryString["ResourceStreamID"]) &&
req.QueryString["ResourceStreamID"].ToLower().Equals("blank.gif"))
{
Context.RewritePath(String.Concat(req.Url.PathAndQuery, "&IterationId=0"));
}
}