Adding Controller with views using Entity Framework Error - Visual Studio 2017 Preview (2) RRS feed

  • Question

  • Trying to follow the tutorial for the MVCMovie project located at :


    Getting the following error when trying to add a controller to the project.  Error is:

    Scaffolding failed to edit Startup class to register the new Context using Dependency Injection. Make sure there is a Startup class and a ConfigureServices method and Configuration property in it.

    I can add an empty controller and a controller with read/write actions, just not the one with the EF framework.

    Any ideas other than waiting for an update to the IDE?


    • Moved by 宝宝徐 Tuesday, August 22, 2017 5:27 AM
    Monday, August 14, 2017 8:16 PM

All replies

  • Hi,

    Welcome to MSDN forum.

    This forum is to talk about visual studio IDE, I recommend you ask question about asp.net core in https://forums.asp.net/1255.aspx/1?ASP+NET+Core , thank you for understanding.

    Best regards,


    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, August 15, 2017 7:01 AM