Click here to Skip to main content
15,881,801 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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<location> for Exception.
(c:\users\nameofdevice\AppData\local\temp-mpCD0C.tmp line 20 )

"""
Posted

1 solution

You are trying to use multiple section in config file

sections-must-only-appear-once-per-config-file-why
See the link and your problem will be solved
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900