Pages Not Displayed

Hello,
Unable to edit application pages for only one application. Page contents are displayed as blank for all pages
image

Where as I get below error in visual studio when I try to run the application

info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
      Authorization failed.

Main page with menu is displayed

Where as other projects are working fine.
I am pasting the radzen log here

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

dotnet: CSC : warning CS8034: Unable to load Analyzer assembly C:\Users\Vinod-PC\.nuget\packages\microsoft.aspnetcore.components.analyzers\3.1.0\analyzers\dotnet\cs\Microsoft.AspNetCore.Components.Analyzers.dll : Assembly with same name is already loaded [C:\RadZen\CliqueNew\server\CliqueN.csproj]

dotnet: C:\RadZen\CliqueNew\server\Pages\AddTicketGroup.razor.designer.cs(248,25): warning CS8669: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source. [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AddTicketGroup.razor.designer.cs(247,15): warning CS8669: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source. [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AgentTransfer.razor.cs(60,26): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AcView.razor.designer.cs(354,1): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AcView.razor.designer.cs(350,17): warning CS0472: The result of the expression is always 'true' since a value of type 'long' is never equal to 'null' of type 'long?' [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AcView.razor.designer.cs(364,1): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AddCashEntry.razor.cs(84,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AddCashEntry.razor.cs(52,25): warning CS0219: The variable 'CreditAmt' is assigned but its value is never used [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AddCashEntry.razor.cs(52,40): warning CS0219: The variable 'DebitAmt' is assigned but its value is never used [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AddCashEntry.razor.designer.cs(428,25): warning CS0472: The result of the expression is always 'true' since a value of type 'long' is never equal to 'null' of type 'long?' [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\VoucherEntry.razor.cs(89,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AgentTransfer.razor.cs(172,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\VoucherEntry.razor.cs(135,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]

dotnet: C:\RadZen\CliqueNew\server\Pages\VoucherEntry.razor.cs(103,21): warning CS0219: The variable 'i' is assigned but its value is never used [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AgentTransfer.razor.cs(184,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AgentTransfer.razor.cs(192,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AgentTransfer.razor.cs(199,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AgentTransfer.razor.cs(264,17): warning CS0162: Unreachable code detected [C:\RadZen\CliqueNew\server\CliqueN.csproj]
C:\RadZen\CliqueNew\server\Pages\AgentTransfer.razor.designer.cs(507,25): warning CS0472: The result of the expression is always 'true' since a value of type 'long' is never equal to 'null' of type 'long?' [C:\RadZen\CliqueNew\server\CliqueN.csproj]

dotnet: CSC : warning CS8034: Unable to load Analyzer assembly C:\Users\Vinod-PC\.nuget\packages\microsoft.aspnetcore.components.analyzers\3.1.0\analyzers\dotnet\cs\Microsoft.AspNetCore.Components.Analyzers.dll : Assembly with same name is already loaded [C:\RadZe
dotnet: n\CliqueNew\server\CliqueN.csproj]

dotnet: info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using 'C:\Users\Vinod-PC\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.

dotnet: info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 3.1.4 initialized 'ApplicationIdentityDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None

dotnet: info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (55ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT 1

dotnet: info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (57ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT OBJECT_ID(N'[__EFMigrationsHistory]');

dotnet: info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (42ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT 1

dotnet: info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (41ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT OBJECT_ID(N'[__EFMigrationsHistory]');

dotnet: info: Microsoft.EntityFrameworkCore.Database.Command[20101]
      Executed DbCommand (47ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
      SELECT [MigrationId], [ProductVersion]
      FROM [__EFMigrationsHistory]
      ORDER BY [MigrationId];

dotnet: info: Microsoft.EntityFrameworkCore.Migrations[20405]
      No migrations were applied. The database is already up to date.

dotnet: info: Microsoft.Hosting.Lifetime[0]
      Now listening on: http://localhost:5000

dotnet: info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\RadZen\CliqueNew\server

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/  

dotnet: warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
      Failed to determine the https port for redirect.

dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint '/_Host'

dotnet: info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[3]
      Route matched with {page = "/_Host", action = "", controller = ""}. Executing page /_Host

dotnet: info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[103]
      Executing an implicit handler method - ModelState is Valid

dotnet: info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[104]
      Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.

dotnet: info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[4]
      Executed page /_Host in 97.3384ms

dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
      Executed endpoint '/_Host'

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 312.6638ms 200 text/html; charset=utf-8

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/_framework/blazor.server.js  
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/_content/Radzen.Blazor/Radzen.Blazor.js  

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/_framework/aspnetcore-browser-refresh.js  
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 7.266ms 200 application/javascript; charset=utf-8

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/assets/css/styles.css  

dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
      The file /_content/Radzen.Blazor/Radzen.Blazor.js was not modified

dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
      The file /assets/css/styles.css was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 2.9794ms 304 text/css

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 12.2587ms 304 application/javascript

dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
      The file /_framework/blazor.server.js was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 13.6452ms 304 application/javascript

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/assets/css/styles-generated.css  
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
      The file /assets/css/styles-generated.css was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 0.4359ms 304 text/css

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/assets/css/material.css  

dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
      Sending file. Request path: '/assets/css/material.css'. Physical path: 'C:\RadZen\CliqueNew\server\wwwroot\assets\css\material.css'

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 22.3708ms 200 text/css

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 POST http://localhost:5000/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0

dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint '/_blazor/negotiate'
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
      Executed endpoint '/_blazor/negotiate'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 20.4503ms 200 application/json

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/assets/fonts/roboto-v15-latin-regular.woff  

dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
      Sending file. Request path: '/assets/fonts/roboto-v15-latin-regular.woff'. Physical path: 'C:\RadZen\CliqueNew\server\wwwroot\assets\fonts\roboto-v15-latin-regular.woff'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 2.1836ms 200 application/font-woff

dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/_blazor?id=9PxOMAEPJlhGi6s549kcCA  

dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
      Executing endpoint '/_blazor'

dotnet: info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
      Authorization failed.

dotnet: info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
      Entity Framework Core 3.1.4 initialized 'CliqueContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None


dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 GET http://localhost:5000/assets/fonts/MaterialIcons-Regular.woff  

dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
      Sending file. Request path: '/assets/fonts/MaterialIcons-Regular.woff'. Physical path: 'C:\RadZen\CliqueNew\server\wwwroot\assets\fonts\MaterialIcons-Regular.woff'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 10.6458ms 200 application/font-woff

Unfortunately we haven't seen this error before. The Authorization failed error is most probably related but we are not sure what could cause it. You can try disabling security temporarily to see if it would make a difference. Also if you have custom code try commenting it out to see if it causes the issue.

I could resolve the error by removing and adding a new mainlayout page. Thanks for your time :slight_smile: