We have now bumped the .NET Framework from v4.6.1 to v4.8
All NuGet’s were updated to latest version, so we are now using Sentry v3.11.1 (previously we were using v2.1.6)
We also removed Sentry.PlatformAbstractions and Sentry.Protocol, as these are now deprecated.
Now, as soon as SentrySdk.Init is called, the following exception is thrown.
Could not load file or assembly ‘System.Net.Http, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system cannot find the file specified.
at Sentry.Internal.SdkComposer.CreateTransport() in //src/Sentry/Internal/SdkComposer.cs:line 86
at Sentry.Internal.SdkComposer.CreateBackgroundWorker() in //src/Sentry/Internal/SdkComposer.cs:line 99
at Sentry.SentryClient…ctor(SentryOptions options, IBackgroundWorker worker) in //src/Sentry/SentryClient.cs:line 52
at Sentry.Internal.Hub…ctor(SentryOptions options, ISentryClient client, ISessionManager sessionManager, ISystemClock clock, IInternalScopeManager scopeManager) in //src/Sentry/Internal/Hub.cs:line 51
at Sentry.SentrySdk.InitHub(SentryOptions options) in //src/Sentry/SentrySdk.cs:line 53
at Sentry.SentrySdk.Init(SentryOptions options) in //src/Sentry/SentrySdk.cs:line 97
The version of System.Net.Http in use now is 184.108.40.206, so I guess that is where the issue lies, but this is what the version of this was prior to the update, where no exceptions were thrown.