none
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");
                   ReportViewer1.LocalReport.DataSources.Clear();
    
                   ReportDataSource _rds1 = new ReportDataSource("NewDataSet_Table1", _ds.Tables[0]);
                   ReportViewer1.LocalReport.DataSources.Add(_rds1);
                   ReportDataSource _rds2 = new ReportDataSource("NewDataSet_Table2", _ds.Tables[1]);
                   ReportViewer1.LocalReport.DataSources.Add(_rds2);
                   ReportDataSource _rds3 = new ReportDataSource("NewDataSet_Table3", _ds.Tables[2]);
                   ReportViewer1.LocalReport.DataSources.Add(_rds3);
                   ReportDataSource _rds4 = new ReportDataSource("NewDataSet_Table4", _ds.Tables[3]);
                   ReportViewer1.LocalReport.DataSources.Add(_rds4);
    
                   ReportViewer1.LocalReport.Refresh();

    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=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    * Name: Reserved.ReportViewerWebControl.axd

    on 

    http://forums.asp.net/post/3728201.aspx


    sumit kumar

    Monday, December 17, 2012 5:55 AM