If compiling and running a project or website with a report view component generates the error Method not found: 'Void Microsoft.Reporting.WebForms.ReportViewer.Reset()' or 'Reset' is not a member of 'Microsoft.Reporting.WebForms.ReportViewer':
Download a fresh ReportViewer:
http://www.microsoft.com/downloads/details.aspx?FamilyId=E7D661BA-DC95-4EB3-8916-3E31340DDC2C&displaylang=en
Tuesday, December 23, 2008
ReportViewer.Reset()
Monday, December 22, 2008
Insert Error Using ObjectDatasource and TableAdapter
Using an ObjectDataSource bound to a FormView, when calling the Insert method, the error "ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'methodname' that has parameters:...etc" This error is caused because TableAdapter is tacking the ID field to the end of the calling parameters even though it is not specified in the
To avoid this problem, the ID field must be bound on the page and editable.
Or the ID field should not be on the page at all. In my particular case, this was the problem, since I did not want my users to edit the primary key of course, but I wanted it visible in a label field. Removing the label field, made the error go away.
More observations on this error can be found at http://weblogs.asp.net/bradygaster/archive/2006/09/26/How-to-Bloody-Your-Forehead.aspx