Application can't scaffold items

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

    I had faced the same problem while creating controller using scaffold with 'ASP.NET MVC5 using views with Entity Framework'

    The problem was because I provided tag before in web.config. setting after resolved the issue.

    I guess, while scaffolding, ASP.NET MVC want to resolve the Entity Framework first, then the connection string, as I have provided connection string earlier so that after resolving the Entity Framework version it could not find the connection string so it thrown invocation problem.

提交回复
热议问题