7 พฤศจิกายน 2555

Why is the ReportViewer Control not working on IIS 7 (ReportViewer ไม่ทำงาน rdlc)



ReportViewer Control toolbar appears but images do not display and JavaScript functionality is not available.

CAUSE:

There is a known issue with web applications using the Microsoft ReportViewer Control under IIS 7 not working properly due to a Handler Mapping issue because of a core architecture change.

RESOLUTION:

1. First, if you haven't already, you will need to enable your account to allow IIS 7 Manager connections and install/configure the IIS 7 Manager on your system. Please view the "How to connect to Windows 2008/IIS 7 using the Microsoft IIS 7.0 Manager" DiscountASP.NET Knowledge Base article for further information.

2. Connect to your web site and open the "Handler Mappings" module.

3. From the "Actions" menu, click on the "Add Manager Handler..." option.

4. In the "Add Managed Handler" dialog box that opens up, supply the following values for the fields:

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

5. Click on the "OK" button to save the changes to the root web.config file.

Since the changes that are made through the IIS 7 Manager will be written directly to the web.config file in your root directory on the web server, it would be prudent to make the same change in your local development environment to avoid overwriting the change when you re-deploy your site in the future.

In the event that you need further assistance, please register - if you haven't already - and post any questions that you may have in the DiscountASP.NET Community Forum.

0 ความคิดเห็น:

แสดงความคิดเห็น