I made Blazor application (.Net 7). Client and server are in different projects. I used ASP.NET Core authentication and IdentityServer4 in project and I scaffold login and register pages in server side in \Server\Areas\Identity\Pages\Account .
When I run the project in Visual Studio, I can access the pages (login.cshtml and register.cshtml) without any issues. However, after publishing the project, I receive a "Not Found page " message when trying to access the login or registration pages on the client side, and I have not any error messages on client or server side.
I publish project on Azure and client(Deploymentmode: Framework-dependent and Target Runtime: Portable) but the out come is same.
I didn't include the code for my project because I'm unsure which part is related to this issue.