Download Securely Handling Errors and Logging Security Events in ASP.NET and ASP.NET Core