Swapping to Development environment will display more detailed information about the error that occurred.

March 14, 2019 0 comments
While developing Employee Mobile based and Web based Attendance system in .net core 2.2.
  1. I published application using VS2017
  2. Then I put this application in IIS and assigned an Application Pool with No Managed Code for .NET CLR Version.
  3. When I was running my application on Chrome browser, I got following error.

Swapping to Development environment will display more detailed information about the error that occurred.
Error. An error occurred while processing your request. Development Mode Swapping to Development environment will display more detailed information about the error that occurred.
Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application.

To resolve this error and check actual error in details, open web.config file and add following code



<aspnetcore>
  <environmentvariables>
       <environmentvariable name="ASPNETCORE_ENVIRONMENT" value="Development">
   </environmentvariable></environmentvariables>
</aspnetcore>

Share Share Tweet Share

0 thoughts on "Swapping to Development environment will display more detailed information about the error that occurred."

LEAVE A REPLY