Last post Sep 04, 2012 04:15 PM by VictorGrippi
Apr 19, 2012 01:44 AM|mawernig|LINK
In a MVC3 project under VS 11, I am using Code First with POCO's and am trying to add a controller. I keep getting the error message "Unable to retrieve metadata for 'MVC3_TestApp.Models.CAS'. The type initializer for 'System.Data.Entity.Internal.AppConfig'
threw an exception." Any ideas what is causing this?
Apr 19, 2012 02:06 AM|Knecke|LINK
Some error in our web.config ?
Jun 06, 2012 10:29 AM|pranav rastogi|LINK
what version of EF are you using? does your app compile before you are adding a controller
Jun 07, 2012 12:56 AM|mawernig|LINK
EF 5.0.0.-beta2. Yes, it compiles. It lets me add a controller without a model, but when I try to add one with scaffolding and a model I get the error message.
Jun 13, 2012 12:46 AM|pranav rastogi|LINK
I work in the the team that builds if and would like to see your project. Will it possible for you to zip your project and upload it somewhere so i can download it?
Sep 04, 2012 04:15 PM|VictorGrippi|LINK
Did you ever find a solution to this? I'm having a similar issue when trying to add a controller. I get this error message: "Unable to retrieve metadata for ... The given key was not present in the dictionary."
VS2010, EF 4.1, MVC3