Forum guidelines
LocalReport(rdlc) in asp .net
Posted By Sumit Gaud on 14 Dec 2012

Hi Experts.

I have created a localReort (.rdlc) in my asp .net application. and bind it with my custom ado DataSet. using following code.

DataSet _ds=GetMyData();

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, my report works fine and shows me data.

When I publish this to webserver and open page in web browser Report Viewer shows blank(Data is not showed). 

Can any one help me. its very urgent.

Re: LocalReport(rdlc) in asp .net
Posted By Sumit Gaud on 17 Dec 2012  
here is the 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

and Done.

Infragistics jQuery Controls


Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.