Application can't scaffold items

后端 未结 29 1340
自闭症患者
自闭症患者 2020-11-30 01:57

I created an MVC 5 application in VS 2013 Professional and then used EF 6.1 code first with an existing DB on SQL Server Express. When I try to create the views I’m using th

29条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 02:23

    I had the same error message. I tried adding a new Data context class from the Add Controller dialog, and then I got a different error:

    There was an error running the selected code generator:
    'Sections must only appear once per config file. See the help topic
     for exceptions.
    

    It turns out that I had two elements in my web.config file. (I had pasted one from the app.config of the class library that contained my Entity Framework model.)

提交回复
热议问题