.NET C# - does not report to the backend

Sorry for taking a while to get back to you all.

As it turns out, a relatively simple solution for our Win Forms application, but took a while to uncover.

I had two problems in the end, the first being that the application I was testing in was using a wrapped implementation of Sentry, so I stupidly didn’t check that the binding redirect was applied to the actual executable.

Once I woke up to the first problem, the second was that I tried so many variations of a handful of different properties in the project file for the executable, but what was the killer was that even if I made a change to the project files, I actually had to do a clean on the entire solution between builds in order for it to work. Particularly relevant if you’re working with an old school application that doesn’t have:

    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

What ended up saving a heap of further work was running the command below in the Package Manger console:

Get-Project –All | Add-BindingRedirect

This updated all my different project’s app.config files so that I didn’t have to. Saved a heap of time and I hope it’s helpful.