| 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.
|
I am unable to renew my Let’s Encrypt SSL
Viewed 2678 times since Thu, Aug 23, 2018
How To Solve Problem with Connection String on EF (Entity Framework) 4 or above
Viewed 32133 times since Mon, Apr 1, 2013
My .CSHTML site is not working. What did I do wrong here?
Viewed 4294 times since Thu, May 3, 2012
About Azure Key Vault
Viewed 1947 times since Mon, Nov 2, 2020
Do you allow custom COM components?
Viewed 3063 times since Tue, May 1, 2012
How can I deploy my VS LightSwitch project on your server?
Viewed 4155 times since Tue, May 22, 2012
Will my Crystal Report XI (Crystal Report 11) work on your server?
Viewed 2883 times since Tue, May 1, 2012
How to Deploy and host .Net Core 2 and Angular 6 app
Viewed 13401 times since Tue, Oct 23, 2018
I cannot find a way to enable ASP.NET 4.5 on my Control Panel
Viewed 11187 times since Tue, Sep 11, 2012
How do I send an email from my ASP.NET website by using SMTP Authentication?
Viewed 6719 times since Tue, May 1, 2012
|
