INCORRECT_PARAMETER_NUMBER error for UpdateMethod on ObjectDataSource

Hi

ReSharper Build 5.0.1659.39 running on Visaul Studio 10.0.30319.1



I receive an error on the 'UpdateMethod' of many ObjectDataSource's which reads INCORRECT_PARAMETER_NUMBER.

Here is my objectdatasource code which is used with a gridview.

<asp:ObjectDataSource ID="ds" runat="server" DeleteMethod="Delete"
        SelectMethod="GetPagedAndSorted" UpdateMethod="Update" InsertMethod="Add"
        TypeName="eData.CohortDb" DataObjectTypeName="eData.Cohort" ConflictDetection="CompareAllValues"
        OldValuesParameterFormatString="original_{0}" OnDeleted="CohortsDataSource_Deleted"
        OnUpdated="CohortsDataSource_Updated" EnablePaging="true" SelectCountMethod="SelectCount"
        SortParameterName="sortExpression" />




Could it be my gridview causing this error or my UpdateMethod in the class library (the signature should match as everything compiles and works as it should).


Could anyone shed some light on this error and how to fix it?



If you would like to see more code like the gridview or the updatemethod then I can provide it.   I didn't want to clutter up the thread with code if wasn't required.

Thanks
2 comments
Comment actions Permalink

I wasn't so sure about installing pre-release software however I updated ReSharper to Build 5.1.1707.19 and this issue has been fixed.

0
Comment actions Permalink

Hello,

I wasn't so sure about installing pre-release software however I
updated ReSharper to Build 5.1.1707.19 and this issue has been fixed.


5.1 is being built on the v5.0 RTM source code plus select bugfixes. Unlike
Early Access Previews for new major versions, which could be pretty much
unstable, minor release previews are usually of nearly RTM quality.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.