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

Posted by Marcus Hammarberg on January 4, 2008
Stats
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.

Published by Marcus Hammarberg on Last updated