Can't add a controller using "windows phone cloud application" template

Mar 13, 2012 at 11:21 AM

I've created a new model called Report. when i try to add a controller to it with CRUD via the "add controller wizard" using my new model and SqlDataContext DBContext class given in the template i get the following error:

 
Unable to retrieve metadata for 'WPCloudApp1.Web.Models.Report'.
The 'SqlSampleDataContextConnectionString' setting is not available.
Parameter name: key

 

i have no trouble running the application, just adding the controller

Any idea ?

 

I have also posted it on stackoveflow

http://stackoverflow.com/questions/9682676/cant-add-a-controller-in-asp-net-mvc3-ef-code-first