0

I am trying to find out what the problem is with my application but I always get the following error page:

enter image description here

I tried adding to azure the ASPNETCORE_ENVIRONMENT variable, and then restarted, but it still does not work. Am I missing smth?

enter image description here

1 Answer 1

1

I tested at my side, and the app environment was changed to development:

enter image description here

Then, for testing, I just throw a Exception in my code, and I will see the detailed error page:

enter image description here

So, I have some suggestions:

1. Check if you have saved the application settings on Azure portal. And restart the web app.

2. You can force to use development environment in startup.cs

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    //if (env.IsDevelopment())
    //{
    //  app.UseDeveloperExceptionPage();
    //}

    // Force to use development environment
    app.UseDeveloperExceptionPage();

    ...
}

And then re-publish it to you web app.

3. You can use remote debugging. Here is a tutorial: Troubleshoot an app in Azure App Service using Visual Studio

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.