Home Page error about Development Mode

Maksim Khatamov 1 Reputation point
2020-11-11T17:35:34.427+00:00

Hello there. I am new to the publishing and all. Here is what I tried:https://stackoverflow.com/questions/39737585/asp-net-core-deployment-to-iis-error-development-environment-should-not-be-enab
Here is the error:
Error.
An error occurred while processing your request.
Request ID: 00-4b14014e9bf14740ab488c0ca48400e2-56d675cc1bba834c-00

Development Mode
Swapping to Development environment will display more 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.

EDIT#1: Forgot to mention. Login and Register working just fine. Except home page. Home page is the only thing not displaying anything. It is the only full page.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,874 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 16,011 Reputation points
    2020-11-16T01:19:22.187+00:00

    Hi @Maksim Khatamov ,

    Apologies for the delay in response. Which part of the solution from StackOverflow did you try? Did you set the environment variable to IIS or update your web.config file? ASP.NET Core configures app behavior based on the runtime environment using an environment variable.To determine the runtime environment, ASP.NET Core reads from the following environment variables:

    1.DOTNET_ENVIRONMENT
    2.ASPNETCORE_ENVIRONMENT when ConfigureWebHostDefaults is called. The default ASP.NET Core web app templates call ConfigureWebHostDefaults. The ASPNETCORE_ENVIRONMENT value overrides DOTNET_ENVIRONMENT.

    Please follow the steps in this doc to set the environment variable.

    Let us know if you have further questions.

    -Grace

    1 person found this answer helpful.
    0 comments No comments

  2. carmer gallardo 0 Reputation points
    2023-02-27T19:06:51.3+00:00

    no entendi mucho pero sim me ayuda

    0 comments No comments

  3. km mehedi 0 Reputation points
    2023-03-12T07:00:22.93+00:00

    Error.

    An error occurred while processing your request.

    Request ID: 00-8753ee3ef0b32e47a60df996883a4f9f-4d40a7983cd1494b-00

    Development Mode

    Swapping to Development environment will display more 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.

    0 comments No comments