Search code examples
asp.net.net-4.0entity-framework-5entitydatasource

Entity Framework 5 + EntityDataSource + ASP.NET + .NET 4.0 Could not find the CLR type for


I created an ORM using Entity Framework 5.0. I added a reference to the ORM to my ASP.NET application. I am trying to use a EntityDataSource to populate a DropDownList. I could configure the EntityDataSource without any problem. However I couldnt set the data fields for the value and the text of the DropDownBox using the wizard, if I click the "Refersh Schema" button (in the Data Source Configuration Wizard), I am getting the following error, "The schema could not be determined because of the following error from the EntityDataSource: Could not find teh CLR type for "


Solution

  • Try this: Change the Code Generation Strategy for your model to Default. Delete .tt files. Save, clean and rebuild.