Zuhaib

A very lazy but meticulous blogger

Archive for the ‘MissingMethodException’ tag

[ObjectDataSource – MissingMethodException] Method not found: Void System.Web.UI.WebControls.Parameter.set_DbType (System.Data.DbType)

with 2 comments

I recently faced this annoying error while working on an ASP.NET site. The problem only occurred with pages containing ObjectDataSource that took parameters.

After a lot of head scratching, I finally stumbled upon this thread. The problem is with the Type property of the ObjectDataSource. Removing the type property from the ObjectDataSource parameters would solve the problem.

Also the error here is misleading set_DbType is a property and not a method.

Written by Zuhaib

February 24th, 2009 at 2:44 pm