Home » Categories » Multiple Categories

How to solve ReportViewer error message: "An error has occurred during report processing. Input string was not in a correct format"

When running ReportViewer on Windows Server 2008, you may face this error message: "An error has occurred during report processing. Input string was not in a correct format". Oddly, the same ReportViewer is working fine on your local PC. So, what would be the possible cause of this issue?

The possible cause of this issue is when a ReportViewer control is dragged onto a page in your Visual Studio tool, the following code is written to the httpHandlers subsection under the system.web section of the projects Web.Config file in the projects root directory.

<system.web>
<httpHandlers>
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</httpHandlers>
</system.web>

When the project is deployed on IIS7, the above is not recognized and the reportviewer will not render data properly. IIS7 requires you to include that in the handlers subsection in the system.webServer section of the projects Web.Config file in the projects root directory.

To resolve the issue, the following lines need to be added to that section 

<system.webServer>
<handlers>
<add name="Reserved-ReportViewerWebControl-axd" path="Reserved.ReportViewerWebControl.axd"
verb="*" type="Microsoft.Reporting.WebForms.HttpHandler" resourceType="Unspecified"
</handlers>
</system.webServer>


Hope this helps
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
I get an error Server.CreateObject Failed when I try to use CDONTs. What can I do?
Viewed 2625 times since Tue, May 1, 2012
Sample Code to Send email using ASP.NET1.1
Viewed 5029 times since Tue, May 1, 2012
I cannot browse to my site via the IP Address directly. What is wrong?
Viewed 4278 times since Mon, May 7, 2012
How can I deploy my website with WebDeploy tool?
Viewed 5968 times since Mon, Apr 30, 2012
I cannot find any article on this Knowledge Base that can solve my issues. What should I do?
Viewed 3868 times since Mon, Apr 30, 2012
How to solve the Let’s Encrypt SSL on ASP.NET Core
Viewed 9072 times since Mon, Jul 17, 2017
Domain Name Server (DNS) Amplification Attack
Viewed 9177 times since Wed, Oct 15, 2014
How can I enable ASP.NET 3.5 on your Control Panel?
Viewed 3579 times since Wed, May 2, 2012