I am working on an ASP.NET page with a GridView and an ObjectDataSource .
I want to configure an ObjectDataSource object to a class (decorated with DataObject ()) at my business level. The class, among many others, is set up in a very similar way. I selected the class and clicked Next to select the function for SelectMethod, but it closes without warning and without any errors.
I can set the TypeName for the ObjectDataSource and attach it to the GridView . I tried Refresh Schema and I got an error:
An error occurred while calling "Update Schema". Details: An exception was thrown by the call target.
I can manually configure ObjectDataSource , but I'm essentially lazy and prefer to use a graphical interface.
Why doesn't it work?
Everything builds perfectly. I can manually connect everything and the page is working fine. However, it still fails when I go to configure the ObjectDataSource with the user interface.
source share