Error during login in Blazor Server side app in local IIS win 10

Zoran Babic 0 Reputation points
2023-11-03T12:10:25.41+00:00

My Blazor server-side application ( Net.6.0, EF core 6, SQL ServerExpres) uses ASP net core identity to log users in. In Visual Studio 2022, the login is working okay, as well as in the remote website.

  • On the local IIS server, Win 10, pages that do not require authorization working okay, but if I try to log in to the page: http://localhost:9054/Identity/Account/Login, the following error appears: "Error. An error occurred while processing your request. Development Mode Swapping to the Development environment displays detailed information about the error that occurred. The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development and restarting the app."

In VS2002 there are no problems, the application enables the Development environment by setting the ASPNETCORE_ENVIRONMENT.

Could you help me?

Kind regards,

Zoran Babic

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
707 questions
0 comments No comments
{count} votes

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.