[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.
You must have .NET Framework 3.5 Installed first.
Parameter in System.Web.dll in .NET Framework 2.0 doesn’t have a DbType Property.
[ Reply ]
Zuhaib Reply:
March 8th, 2010 at 2:07 pm
You are correct. DbType property was added in .NET Framework 3.5
[ Reply ]
Regnad
8 Mar 10 at 5:53 am