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 amongst many others set up in a very similar fashion. I selected the class and clicked Next to pick the function for the SelectMethod andbut it closes without warning and without any error.
I can set the TypeName
for the ObjectDataSource
and attach it to a GridView
. I attempted to Refresh Schema
and I got an error pop up:
Error invoking 'Refresh Schema'. Details: Exception has been thrown by the target of an invocation.
I can manually 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.