# ASP.Net Identity on Visual Studio 2019

**URL:** <https://forum.codewithmosh.com/t/asp-net-identity-on-visual-studio-2019/1136>\
**Category:** ASP.NET MVC\
**Created:** [December 5, 2020, 9:52am UTC](https://forum.codewithmosh.com/t/asp-net-identity-on-visual-studio-2019/1136 "2020-12-05T09:52:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nili](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@Nili](https://forum.codewithmosh.com/u/Nili)\
**Post date:** [December 5, 2020, 9:52am UTC](https://forum.codewithmosh.com/t/asp-net-identity-on-visual-studio-2019/1136/1 "2020-12-05T09:52:36Z")

</div>

Hello,

I am using Visual Studio 2019 and started as described in the tutorial a new MVC project.  
But it seems like that all the Identity classes and functionalities for authorization are not included in my project. Doea anyone know why?

Thank you in advance and reagrds  
Nili

---

<div class="post-metadata">

**Author:** ![SAM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sam/32/167_2.png) [@SAM](https://forum.codewithmosh.com/u/SAM)\
**Post date:** [December 5, 2020, 10:37am UTC](https://forum.codewithmosh.com/t/asp-net-identity-on-visual-studio-2019/1136/2 "2020-12-05T10:37:01Z")

</div>

> [@MVC Vidly application](https://forum.codewithmosh.com/t/mvc-vidly-application/998/2):
>
> 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.

---

<div class="post-metadata">

**Author:** ![Nili](https://avatars.discourse-cdn.com/v4/letter/n/50afbb/32.png) [@Nili](https://forum.codewithmosh.com/u/Nili)\
**Post date:** [December 7, 2020, 11:21am UTC](https://forum.codewithmosh.com/t/asp-net-identity-on-visual-studio-2019/1136/3 "2020-12-07T11:21:25Z")

</div>

Thank you for you answer!  
No, I didn’t changed it, but the default setting was no authentication.  
I started a new project now with “Individual User Accounts” and now everything was there.

---

<div class="post-metadata">

**Author:** ![mojeffcodes](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mojeffcodes](https://forum.codewithmosh.com/u/mojeffcodes)\
**Post date:** [December 4, 2022, 7:09pm UTC](https://forum.codewithmosh.com/t/asp-net-identity-on-visual-studio-2019/1136/4 "2022-12-04T19:09:35Z")

</div>

Yes, the video series should have an update to explain individual user accounts should be selected when creating the project, because VS 2019 defaults to no auth, which prevents scaffolding out Entity Framework and Identity libraries.

In the current course on Teachable, it doesn’t cause an issue until section 3 (Working with Data), because it uses Entity Framework. To resolve this issue, refer here: [Enable -migration not working](https://forum.codewithmosh.com/t/enable-migration-not-working/8913)

The next problem is missing Identity libraries, which are required in section 8 (Authentication). Here’s an outline of a great way to quickly get this working. [ASP.Net MVC: Change from "No Authentication" to "Individual User Accounts" on existing project - Stack Overflow](https://stackoverflow.com/questions/51773602/asp-net-mvc-change-from-no-authentication-to-individual-user-accounts-on-ex)

Be sure your DbSet definitions for applicationDbContext (IdentityModels.cs).

To be clear in regards to copying/adding files to solution from the “dummy” project over to your live project, I would recommend using the “Add Existing” option in solution explorer, then you can select the files/directories needed and they will be added to the solution. If you simply copy them over to the directory using something like File Explorer, you would still need to manually add them to the solution.
