Add Controller in MVC4 not working

前端 未结 11 577
一向
一向 2020-11-30 08:58

I\'m using VS 2010 Premium. I have a MVC4 project using SqlCe 4.0 with a entity framework model.

Model is:

  public class ProjectBuild
    {
       p         


        
11条回答
  •  自闭症患者
    2020-11-30 09:40

    A note if it helps anyone. I just had this problem.

    This Fixed it: 1. Commenting out the Connection String 2. Rebuild Website without Connection String 3. Add Controller 4. Uncomment Connection String 5. Rebuild Website

    All Works Fine.

提交回复
热议问题