Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReportViewer IE 11

I have a page on my 3.5 framework webforms site that displays reports. It is using report viewer 10.0.0.0. The reports render for every browser but IE11. Only reports that display information in doc type format render as an html table and are stored in a .rdl file. The param box loads but when the report is selected and ran I just get the loading gif and it times out. I've tried to troubleshoot with the IE11 dev tools and they time out upon opening it's a perfect storm here. Another bit of info I run the website locally in VS2012 and in IE11 it renders just not on the IIS7 server.

I've tried a custom .browser file to emulate IE10 no luck there. Any help will be appriciated or maybe just knowing I'm not the only one.

Update: I found the exception on my server logs. HttpHandlerInputException, Missing URL parameter: IterationId.

Thanks in advance.

like image 582
vikingben Avatar asked Feb 24 '14 16:02

vikingben


1 Answers

Found it on the url listed in the comments. I can't believe how lame this is that when microsoft puts out a new browser they do not test as we do.

void Application_BeginRequest(object sender, EventArgs e)
{
    // Bug fix for MS SSRS Blank.gif 500 server error missing parameter IterationId
    // https://connect.microsoft.com/VisualStudio/feedback/details/556989/
    if (HttpContext.Current.Request.Url.PathAndQuery.StartsWith("/Reserved.ReportViewerWebControl.axd") &&
     !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString["ResourceStreamID"]) &&
        HttpContext.Current.Request.QueryString["ResourceStreamID"].ToLower().Equals("blank.gif"))
    {
        Context.RewritePath(String.Concat(HttpContext.Current.Request.Url.PathAndQuery, "&IterationId=0"));
    }
}
like image 188
vikingben Avatar answered Oct 09 '22 06:10

vikingben