A checklist and gotchas from migrating elmah.io's Azure Functions off the retiring In-process model, comparing Startup.cs with FunctionsStartup/IFunctionFilter against the Isolated model's process separation and middleware support on .NET 8. ...
Demonstrates elmah.io's breadcrumbs feature in a WinUI 3 calculator app: installing the Elmah.Io.WinUI package, calling AddBreadcrumb on navigation and clicks, then triggering a DivideByZeroException to see the trail leading up to the crash. ...
Decodes a DivideByZeroException's HResult value of -2147352558 (0x80020012) into severity, facility, and error code bits using C# bitmasking, then looks it up on hresult.info to reveal FACILITY_DISPATCH and DISP_E_DIVBYZERO. ...
Fixes HTTP Error 500.19 on IIS by checking two separate causes: enabling .NET Extensibility and ASP.NET in Windows Features for classic ASP.NET, versus installing the .NET Core Hosting Bundle and verifying AspNetCoreModule for ASP.NET Core. ...
Shows how to install elmah.io's ChatGPT app (GPT-3.5 Turbo), trigger a DivideByZeroException from an ASP.NET Core 8 Razor Pages app using Elmah.Io.AspNetCore, get an AI fix suggestion, then enable INCLUDE SOURCE via the Elmah.Io.Client.Extensions.SourceCode NuGet package so ChatGPT sees the code. ...
Demonstrates unit testing a BlobCleanup class built on Azure.Storage.Blobs' BlobServiceClient using NUnit and NSubstitute, mocking the virtual GetBlobContainers method by building a Page<BlobContainerItem> via BlobsModelFactory since Pageable and BlobContainerItem lack public constructors. ...
Introduces the Elmah.Io.Cli dotnet tool (dotnet tool install --global Elmah.Io.Cli), focusing on two subcommands: diagnose, which inspects a project for missing UseElmahIo calls and other misconfigurations, and export, which pulls log messages to a JSON file for Excel or Sheets. ...
Shows how to unit test a Jokes class that calls the JokeAPI through HttpClient with NUnit, by implementing a custom HttpMessageHandler to intercept requests instead of hitting the real https://v2.jokeapi.dev/joke/Programming endpoint, avoiding flaky integration-test failures when the API is down. ...
Explains setting up correlation IDs across ASP.NET Core services with the Elmah.Io.AspNetCore and Elmah.Io.Extensions.Logging packages, configured via AddElmahIo and UseElmahIo in Program.cs, so a request, its NullReferenceException, and related ILogger messages group into one elmah.io view. ...