After web app deployment , error 404 after trying to log in /Identity/Account/Login page can't be found

Jose Gomez 0 Reputation points
2024-08-06T05:28:31.3633333+00:00

I deployed this application before without issues.
I removed the connection string configuration in the publish profile (Visual Studio), and published the application.
Now the application shows the Login screen, but after entering the username and password, I got a 404 error

No webpage was found for the web address: https://www.mywebsitename.com/Identity/Account/Login

HTTP ERROR 404

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,573 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,808 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JasonPan - MSFT 5,796 Reputation points Microsoft Vendor
    2024-08-06T07:05:33.7166667+00:00

    Hello @Jose Gomez,

    Could you kindly share the structure of your project and the .csproj file ? I need to check if the necessary Identity folders are included during the compilation and distribution process.

    The easiest way for this issue is to check whether the content of the release files under wwwroot in kudu site is consistent with the files in the folder in VS2022 in debug mode. The files under Debug Mode like below.

    User's image

    Best Regards

    Jason

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.