I've seen this error in my "main project."
Here's a demo to reproduce the issue...
Steps to Reproduce:
-
Create New Radzen Application Project.
a. Select Blazor Client Side
b. Name: RadzenTest
c. Directory: C:\Users\richa\Documents\Radzen -
Click Data | New
-
Select MS SQL Server
a. Name: Test
b. Server: localhost
c. Database: Test
d. Authentication: Windows Authentication -
Click Create Sample Schema
-
On this page, select all option boxes
-
Click Finish.
-
Go back to the Application's "main" page.
-
Click Security.
-
Select Provider Default
-
Click Autogenerate pages.
-
Select Data Source Test
-
Click Enable MultiTenancy
-
Click Save
-
Click Run
-
Note the following error:
radzen: Generating code ...
radzen: Code generation done in 260ms.
dotnet: watch :
dotnet: Started
dotnet: C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationRolesController.cs(31,53): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
dotnet: C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationRolesController.cs(35,32): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationRolesController.cs(53,40): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationRolesController.cs(56,62): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationRolesController.cs(77,40): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationRolesController.cs(20,42): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationRolesController.cs(24,59): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationUsersController.cs(241,56): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationUsersController.cs(245,33): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationUsersController.cs(268,43): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationUsersController.cs(308,43): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationUsersController.cs(311,78): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationUsersController.cs(341,43): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
C:\Users\richa\Dev\Radzen\Test\server\Controllers\ApplicationUsersController.cs(344,63): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'Test.Controllers.Test' (are you missing an assembly reference?) [C:\Users\richa\Dev\Radzen\Test\server\Test.Server.csproj]
dotnet:
dotnet: The build failed. Fix the build errors and run again.
dotnet:
dotnet: watch : Exited with error code 1
dotnet: watch : Waiting for a file to change before restarting dotnet...
Please see the project here.
For some projects, the Security appears to work... For most others, it throws this error.