The type specified in the TypeName property of ObjectDataSource 'myODS' could not be found.
Long story short, the object I was using was actually a nested class. Even though you write you code like this:
MyNamespace.MyClass.NestedClass.Action();
The actual fully qualified type name for an ObjectDataSource TypeName will be "MyNamespace.MyClass+NestedClass" with a SelectMethod of "Action". If you visit this MSDN page and look down to where it talks about delimiters, you will see that nested classes use a plus as a delimiter for some reason instead of the usual dot.
2 comments:
Thank you. I wasted no time or effort determining the cause of the error, because you were the number one Google result.
Ditto. Thanks.
Post a Comment