Show stacktrace when dotnet core API doesn't start
Show stacktrace when dotnet core API doesn't start
Use case
When you have an API that doesn't start and doesn't show an error log.
Solution
Update the web.config and set the ASPNETCORE_DETAILEDERRORS environment variable to true.
<system.webServer><httpErrors errorMode="Detailed" /><aspNetCore processPath="dotnet"><environmentVariables><environmentVariable name="ASPNETCORE_DETAILEDERRORS" value="true" /></environmentVariables></aspNetCore></system.webServer>
Feel free to update this blog post on GitHub, thanks in advance!
Enjoying the blog?
Support my work
If you enjoyed this post and found it useful, consider supporting my work. It helps me keep creating and sharing content like this. Thank you!