I am working on an ASP.NET page with a GridView and an ObjectDataSource.
I want to configure the ObjectDataSource against a class (decorated with DataObject()) in my business layer. A class amonst many others set up in a very similar fashion. I select the class and click Next to pick the function for the SelectMethod and it closes without warning and without any error.
I can set the TypeName for the ObjectDataSource and attach it to a GridView. I attempt to Refresh Schema and I get an error pop up.
Error invoking 'Refresh Schema'. Details: Exception has been thrown by the target of an invocation.
I can manual set up the ObjectDataSource, but I am inherently lazy and would prefer to use the GUI.
Why is it failing?
Everything builds just fine. I can manually hook everything up and the page works just fine. Yet it still fails when I go to configure the ObjectDataSource with the UI.