Archive for the ‘MissingMethodException’ tag
[ObjectDataSource – MissingMethodException] Method not found: Void System.Web.UI.WebControls.Parameter.set_DbType (System.Data.DbType)
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.

