I'm trying to use an ObjectDataSource in a SharePoint 2013 custom solution but I've the following errors...
Just start with the initial version of the ObjectDataSource:
<asp:ObjectDataSource ID="ods" runat="server" TypeName="BLProject.MyClass" />
MyNamespace.MyClass comes from another class library that interacts with the database using EntityFramework.
So with this ObjectDataSource I get the error
The type specified in the TypeName property of ObjectDataSource 'ods' could not be found.
Using Google I found this link so my control has become:
<asp:ObjectDataSource ID="ods" runat="server" TypeName="BLProject.MyClass, $SharePoint.Project.AssemblyFullName$" />
But nothing changed, so after another search with Google I added this
<add assembly="BLProject.MyClass, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
And I get this error:
Could not load file or assembly 'BLProject.MyClass, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
What I'm doing wrong?