MVC Vidly application

Hi All,

I’m currently taking the ASP.NET MVC 5 training.
In the “Working with Data” section need to enable migrations.
When trying to run this getting following error all the time:

PM> Enable-Migrations
No context type was found in the assembly ‘Vidly’.
PM>

Can anyone advise how this can be resolved?

Thanks in advance

Regards

Yossi

When creating the project in Getting Started, Lesson 4, did you change the authentication from “Individual User Accounts” to something else? If you disable authentication, VS won’t add EF to the project and won’t generate the boilerplate code to set it up.

Thanks a lot for the answer.
How can I verify this? Tried to find the Authentication settings but didn’t find it.

Regards

Yossi

If you chose authentication you should have a Startup.Auth.cs in your App_Start folder.

I am having the same issue. Were you able to resolve this issue @yosovd ? Thank you!

Thanks for the response @SAM I will try to recreate the Project by selecting Individual User Accounts. By Default on my machine No Authentication was the option selected and I starting developing on it and ran into issues.