It’s very common to use object data source to bind the grid , formview etc but the problem is Assembly registration in web.config specially in multi server farm.
In order to avoid the registration of your assembly in web.config file just follow two simple steps as mentioned below.
In your UserControl ASCX file add assembly directive
<%@ Assembly Name=”ILX.MKS.Business, Version=22.214.171.124, Culture=neutral, PublicKeyToken=123a45b9c456789″ %>
In object data source give fully qualified type Name like below
TypeName=”ILX.MKS.Business.UserRegistration, ILX.MKS.Business, Version=126.96.36.199, Culture=neutral, PublicKeyToken=123a45b9c456789″
There are pros and cons of the above option, this is helpful if you do not want to touch the web.config file, otherside is if you maintain in web.config then will be central location to maintain
the assembly reference.