Application can't scaffold items

后端 未结 29 1309
自闭症患者
自闭症患者 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:26

    It seems a problem of connecting setting / inconsistent entry in via Web.config. To fix this issue , follow below steps:

    Remove connection related information (staring with from Web.config and remove models generated so far.

    Now generate the model and it will add fresh connection entry in Web.config file. Once model is generated, build the solution then start doing Scaffolding controlled. it will work.

提交回复
热议问题