Click here to Skip to main content
12,550,731 members (36,676 online)
Rate this:
Please Sign up or sign in to vote.
Hi Experts.

I have created a localReort (.rdlc) in my asp .net application. and bind it with my custom ado DataSet. using following code.
ReportViewer1.ProcessingMode = ProcessingMode.Local;
            ReportViewer1.LocalReport.EnableExternalImages = false;
            ReportViewer1.LocalReport.EnableHyperlinks = false;
            ReportViewer1.Visible = true;
            ReportViewer1.ShowBackButton = true;
            ReportViewer1.ShowDocumentMapButton = true;
            ReportViewer1.ShowExportControls = true;
            ReportViewer1.ShowFindControls = true;
            ReportViewer1.ShowParameterPrompts = false;
            ReportViewer1.ShowReportBody = true;
            ReportViewer1.SizeToReportContent = true;
            ReportViewer1.ShowToolBar = true;
            ReportViewer1.ShowZoomControl = true;
            ReportViewer1.DocumentMapCollapsed = true;
            this.ReportViewer1.LocalReport.ReportPath = Server.MapPath("Report1.rdlc");
            ReportDataSource _rds = new ReportDataSource("DataSet1", _ds.Tables[0]);

As I hit F5 report works fine. When I publish website on iis, Report viewer shows blank. and no data showed there. and even no exception is thrown.

Can any one help me. This is urgent.
Posted 14-Dec-12 6:42am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I found answer

Go to IIS7 Manager, find the virtual directory for our application
Click on 'Handler Mappings'
Click on 'Add managed Handler'
Fill in these details:
* Request path: Reserved.ReportViewerWebControl.axd
* Type: Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
* Name: Reserved.ReportViewerWebControl.axd

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161021.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100