I have multiple reports in ASP.Net web application which I created using Visual Studio 2005. I'm using the ReportViewer for these reports and they all work fine on development. I am using parameters for my report (not ReportViewer parameters...just a couple
of calendar control for a date range) and I am passing these parameters to my stored procedure. I do this because I'm not familiar with the ReportViewer parameters.
In order to be able to change my parameters and run the report again in neet to use the ReportViewer1.Reset method and again it works fine on development but when I move to production, I get an error:
Method not found: 'Void Microsoft.Reporting.WebForms.ReportViewer.Reset()'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.MissingMethodException: Method not found: 'Void Microsoft.Reporting.WebForms.ReportViewer.Reset()'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[MissingMethodException: Method not found: 'Void Microsoft.Reporting.WebForms.ReportViewer.Reset()'.]
UILayer_Pages_WeeklyForecastReport.ShowReport() +0
UILayer_Pages_WeeklyForecastReport.btnSubmit_Click(Object sender, EventArgs e) +143
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
I researched this and found that I needed to install the MS ReportViewer 2005 Redistributable SP1 (Upgrade) on production because the .Reset method was a bug and was fixed in the SP1.
I installed this and I get the same error. I checked the WINNT\assembly directory on production and found the 2 files needed:
Microsoft.ReportViewer.Common.dll and Microsoft.ReportViewer.WebForms.dll and they both have version # 8.0.50727.817
netplan
Member
96 Points
182 Posts
ReportViewer "Reset" doesn't work on production server
Sep 18, 2008 06:10 PM|LINK
HI,
I have multiple reports in ASP.Net web application which I created using Visual Studio 2005. I'm using the ReportViewer for these reports and they all work fine on development. I am using parameters for my report (not ReportViewer parameters...just a couple of calendar control for a date range) and I am passing these parameters to my stored procedure. I do this because I'm not familiar with the ReportViewer parameters.
In order to be able to change my parameters and run the report again in neet to use the ReportViewer1.Reset method and again it works fine on development but when I move to production, I get an error:
Nai-Dong Jin...
All-Star
41630 Points
3558 Posts
Re: ReportViewer "Reset" doesn't work on production server
Sep 24, 2008 03:58 AM|LINK
Hi,
Based on other posts, what you need is:
Microsoft.ReportViewer.Common.dll 8.0.50727.762
Microsoft.ReportViewer.WebForms.dll 8.0.50727.762
You need to copy (Common, WebForms) to the server then running gacutil -i on them.
Here’s the post you can refer.
http://forums.asp.net/p/1078374/2499672.aspx
Thanks.