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: Tue, Jun 18, 2013 at 12:02 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.
|
My Crystal Report does not work.
Viewed 6249 times since Wed, May 23, 2012
Have you supported Crystal Report for VS 2010 (v13)?
Viewed 2804 times since Tue, May 1, 2012
How do I redirect a subdomain to a subdirectory?
Viewed 3891 times since Tue, May 1, 2012
How can I enable ASP.NET 3.5 on your Control Panel?
Viewed 3770 times since Wed, May 2, 2012
My application pool stops working. What is wrong with my site?
Viewed 13087 times since Sun, Feb 15, 2015
How To Solve Problem with Connection String on EF (Entity Framework) 4 or above
Viewed 31669 times since Mon, Apr 1, 2013
Sample Code to Send email using ASP.NET1.1
Viewed 5268 times since Tue, May 1, 2012
Sample Code to Send email using ASP.NET 2
Viewed 9598 times since Tue, May 1, 2012
My website session times out earlier than expected. Why?
Viewed 4816 times since Tue, May 1, 2012
Why do I receive "Server Unavailable" message after Crystal Report configuration?
Viewed 2740 times since Tue, May 1, 2012
|