The data source '' only supports a single view named 'DefaultView'

· January 4, 2008

I am trying the LinqDataSource out and ran into the error message: “The data source ‘’ only supports a single view named ‘DefaultView’”, when i had configured my datasource and tried to use it from a DropDownBox.

After some frustration and hair pulling (as always) i found the reason; i had set the DataMember on the datasource. This was not needed since my datasource specified only one “table”. And now - as i am writing this i understand that that’s what the error message is trying to tell me.

So - to get around the “The data source ‘’ only supports a single view named ‘DefaultView’” - error message simply remove the DataMember value where you are using the datasource.

Twitter, Facebook