Enable .Net & .Net Core Debug Logging

By default error logging is turned off in .Net Core, .Net which is excellent for security.

Unlike ASP.NET and Classic ASP it will not send errors to the client browser by default.
Therefore in order to debug apps on this stack please enable error logging as follows:

  • Edit your web.config file in your applications root and change the stdoutLogEnabled attribute from "false" to "true".
  • Create a "Logs" folder in the root directory of your application.
  • Run your application and the debugging log will be created.
  • Open the debugging files in the Logs folder to see any errors being produced by your application.
  • Once you have debugged your issues please disable debugging again in the web.config to prevent constant log file generation.

If you have any issues or need help please open a support ticket and our team will help you resolve everything.

  • .net core, debug, error, logging
  • 43 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

Enabling the InProcess Hosting Model

As of ASP.NET Core version 2.2 + there is a new hosting model that adds support for direct In...

HTTP Error 500.32 - Failed to load .NET Core host

If you receive the error "HTTP Error 500.32 - Failed to load .NET Core host" response from your...

How to enable ASP.NET, .Net Core & .Net on your website

.Net Core (All Versions) & .Net 6.0 & 7.0, ASP.NET 4.x and 2.x and Classic ASP are...

HTTP Error 500.21 - Internal Server Error Handler "aspNetCore" has a bad module "AspNetCoreModuleV2" in its module list

If you receive the following error in your ASP.NET Core application please see the fix below:...