Error occurred while processing your request

Andy Guschwan 6 Reputation points
2021-07-22T15:42:19.9+00:00

I published my application which contains Identity Framework for logins to Azure. The login works perfectly fine in my local environment. But I get the following error after publishing to Azure. I actually did not make any changes to my Login code.

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.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,161 questions
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
{count} vote

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2021-07-26T08:35:43.287+00:00

    Thanks for asking question! It looks like your code is throwing an unhandled exception. That is why you see the error further its saying that setting the configuration to development mode you'll will get a more detailed error.

    You may want to know that Azure provides built-in diagnostics to assist with debugging an App Service app.
    Check this article on how to enable diagnostic logging and add instrumentation to your application, as well as how to access the information logged by Azure.

    You may also refer to this tutorial to use Visual Studio tools to help debug an app in App Service, by running in debug moderemotely or by viewing application logs and web server logs.

    Let us know.

    0 comments No comments