ReportViewer does not loading Local Report in asp .net RRS feed

  • Question

  • 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.Visible = true;
                   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;
                   ReportViewer1.LocalReport.ReportPath = Server.MapPath("DvatReport.rdlc");
                   ReportDataSource _rds1 = new ReportDataSource("NewDataSet_Table1", _ds.Tables[0]);
                   ReportDataSource _rds2 = new ReportDataSource("NewDataSet_Table2", _ds.Tables[1]);
                   ReportDataSource _rds3 = new ReportDataSource("NewDataSet_Table3", _ds.Tables[2]);
                   ReportDataSource _rds4 = new ReportDataSource("NewDataSet_Table4", _ds.Tables[3]);

    when i debug application (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. 

    After publishing Page looks like 

    After Publish Report Viewer shows no Report and Data.

    Someone has any idea. Why this is happening.

    Thanks a lot.

    sumit kumar

    Friday, December 14, 2012 12:35 PM

All replies

  • I found 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


    sumit kumar

    Monday, December 17, 2012 5:55 AM