Hello
I Have Probelm When Create MVC APP code First
i create models and Context And Initializer, and Set Webconfig File
But When Create Controller i find this message
Error
There was an error running the selected code generator :
'unable to retrieve metadata for 'nameofApp.model.class'.
sections must only appear once per config file. see the help topic for Exception.
(c:\users\nameofdevice\AppData\local\temp-mpCD0C.tmp line 20 )'
Ramadan ElmahdyPosted Feb 7, 2015, 3:19 PM
Suraj SahooPosted Feb 7, 2015, 2:31 PM
The issue is due to the multiple sections, in the web.config.
http://stackoverflow.com/questions/1768362/sections-must-only-appear-once-per-config-file-why
Please check the above link, this will solve you problem for sure.
Hope this helps. Check for the configSections in the web config where the sections are defined. This generally hampers scaffolding.
You can check here too:
http://stackoverflow.com/questions/23576294/application-cant-scaffold-items
Thanks