Active Directory Security Fails after latest update

I updated this morning to the newest version - but project won't build - all sorts of User Security errors.

I created a new project from scratch - created a generic page, set Active Directory (passed test), and created a blank page - and I get the same build errors.

dotnet: obj\Debug\netcoreapp3.1\RazorDeclaration\Pages\Login.razor.g.cs(91,75): error CS0246: The type or namespace name 'SignInManager<>' could not be found (are you missing a using directive or an assembly reference?) [...]

dotnet: obj\Debug\netcoreapp3.1\RazorDeclaration\Pages\Login.razor.g.cs(92,75): error CS0246: The type or namespace name 'UserManager<>' could not be found (are you missing a using directive or an assembly reference?) [...]

Models\ApplicationUser.cs(9,44): error CS0246: The type or namespace name 'IdentityUser' could not be found (are you missing a using directive or an assembly reference?) [...]

dotnet: Models\ApplicationUser.cs(15,32): error CS0115: 'ApplicationUser.PasswordHash': no suitable method found to override [...]
Controllers\AccountController.cs(23,26): error CS0246: The type or namespace name 'ApplicationIdentityDbContext' could not be found (are you missing a using directive or an assembly reference?) [...]
Controllers\AccountController.cs(25,34): error CS0246: The type or namespace name 'ApplicationIdentityDbContext' could not be found (are you missing a using directive or an assembly reference?)

Same here. Just updated my super simple one page Blazor app and ran it. I'm going to see if I can figure out what broke...

radzen: Generating code ...
radzen: Code generation done in 1385ms.
dotnet: watch :
dotnet: Started

dotnet: Models\ApplicationUser.cs(9,44): error CS0246: The type or namespace name 'IdentityUser' could not be found (are you missing a using directive or an assembly reference?) [C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\ItInventory2.csproj]
obj\Debug\netcoreapp3.1\RazorDeclaration\Pages\Login.razor.g.cs(91,75): error CS0246: The type or namespace name 'SignInManager<>' could not be found (are you missing a using directive or an assembly reference?) [C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\ItInventory2.csproj]

dotnet: Models\ApplicationUser.cs(15,32): error CS0115: 'ApplicationUser.PasswordHash': no suitable method found to override [C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\ItInventory2.csproj]
obj\Debug\netcoreapp3.1\RazorDeclaration\Pages\Login.razor.g.cs(92,75): error CS0246: The type or namespace name 'UserManager<>' could not be found (are you missing a using directive or an assembly reference?) [C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\ItInventory2.csproj]
Controllers\AccountController.cs(23,26): error CS0246: The type or namespace name 'ApplicationIdentityDbContext' could not be found (are you missing a using directive or an assembly reference?) [C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\ItInventory2.csproj]
Controllers\AccountController.cs(25,34): error CS0246: The type or namespace name 'ApplicationIdentityDbContext' could not be found (are you missing a using directive or an assembly reference?) [C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\ItInventory2.csproj]

Ignore the VS 2015 directory name, I use VS 2019.

FWIW VS build errors -
2>Validation Complete
1>C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\obj\Debug\netcoreapp3.1\RazorDeclaration\Pages\Login.razor.g.cs(91,75,91,105): error CS0246: The type or namespace name 'SignInManager<>' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\obj\Debug\netcoreapp3.1\RazorDeclaration\Pages\Login.razor.g.cs(92,75,92,103): error CS0246: The type or namespace name 'UserManager<>' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\Controllers\AccountController.cs(23,26,23,54): error CS0246: The type or namespace name 'ApplicationIdentityDbContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\Controllers\AccountController.cs(25,34,25,62): error CS0246: The type or namespace name 'ApplicationIdentityDbContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\Models\ApplicationUser.cs(9,44,9,56): error CS0246: The type or namespace name 'IdentityUser' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Visual Studio 2015\Projects\Radzen Projects\ITInventory2\server\Models\ApplicationUser.cs(15,32,15,44): error CS0115: 'ApplicationUser.PasswordHash': no suitable method found to override
1>Done building project "ItInventory2.csproj" -- FAILED.

Adding namespace "using Microsoft.AspNetCore.Identity;" fixes the errors in login.Razor and application.user.cs

No luck yet with accountcontroller.cs errors

This is already fixed and we will publish release later today

1 Like