Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

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

$
0
0

I'm cross posting this because it might make more sense here vs the Visual Studio MSDN forum.

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

https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/adding-model

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?

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>