| 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" |
|
Article Number: 150 | Rating: 5/5 from 1 votes | Last Updated: Wed, Sep 24, 2025 at 12:13 AM
|
| 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
There are no attachments for this article.
|
How can I enable ASP.NET 3.5 on your Control Panel?
Viewed 4015 times since Wed, May 2, 2012
I cannot find any article on this Knowledge Base that can solve my issues. What should I do?
Viewed 4303 times since Mon, Apr 30, 2012
My site is showing 500 Internal Server error message. What is wrong here?
Viewed 3774 times since Thu, May 3, 2012
How to Solve the error: "405 - HTTP verb used to access this page is not allowed"?
Viewed 5488 times since Wed, Oct 24, 2018
I cannot see my website. What should I do?
Viewed 3971 times since Thu, May 3, 2012
How do I send an email from my ASP.NET website by using SMTP Authentication?
Viewed 6675 times since Tue, May 1, 2012
About Azure Key Vault
Viewed 1901 times since Mon, Nov 2, 2020
I forgot my Help Desk Account password. What should I do?
Viewed 7302 times since Mon, May 7, 2012
How can I deploy my ASP.NET project with WebDeploy facility via Visual Studio 2010 tool?
Viewed 5913 times since Wed, Jun 6, 2012
How do I query MySQL database in ASP.NET?
Viewed 12732 times since Tue, May 1, 2012
|
