question

AndyGuschwan-0773 avatar image
0 Votes"
AndyGuschwan-0773 asked NickL-4321 commented

Error occurred while processing your request

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.

azure-webappsdotnet-aspnet-core-webapi
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking in to see if the below answers helped. If this answers your query, do click “Accept Answer” and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·

Hello AndyGuschwan-0773,

I believe that I am having the same issue as you. Were you ever able to get a your issue resolved? If so, please send the fix my way.

Thanks NickL

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.