Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 24, 2008 03:58 AM by Nai-Dong Jin - MSFT
Sep 18, 2008 06:10 PM|LINK
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()'.
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.
[MissingMethodException: Method not found: 'Void Microsoft.Reporting.WebForms.ReportViewer.Reset()'.]
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
What else do I need?
Sep 24, 2008 03:58 AM|LINK
Based on other posts, what you need is:
You need to copy (Common, WebForms) to the server then running gacutil -i on them.
Here’s the post you can refer.