Saturday, October 21, 2006

ASp 2.0 'common' error*

Saturday, October 21, 2006 12:46:25 AM (GMT Standard Time, UTC+00:00)

System.InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: ...

This was my fate after simmplllyy following an ASP 2.0 tutorial vid(eo) click-for-click. Thinking that somehow this was my fault ie I mistakingly omitted some parameter, I spent about an hour doing the thing over and over and... o.. Eventually I found the problem, and it was linked to the way that ASP 2.0 (and VS'05) handles the ObjectDataSource object (this also depends on the data and data types as they are in your database). IE, It can happen to anyone and is not directly proportional to your c0ding skill.

In retrospect, I should've checked online, as when I did (a couple hours after I got it fixed), I saw that tons of developers had that problem! And good suggestions have been made to curb it. Here are a couple: one, two.

Other that that little hickup, ASP 2.0's looking very very nice and yea, I know, I'm late... as it's been out for a while but, better late than never! And once I see no ASP 3.0 headlines from MS, I still think I'm sitting well!

Related posts:
Select a random row in MS SQL...
Regular expressions
VS2005, ASP.NET 2 & DLLs, DLLs..
MS's ASP.NET and.. PHP
2-way databinding cascading drop down lists within a FormView
ApplicationName Property when customising providers

Comments are closed.