Get this when I try to use sentry: Could not load type 'Microsoft.AspNetCore.Http.Internal.BufferingHelper' from assembly 'Microsoft.AspNetCore.Http, Version=3.1.1.0, Culture=neutral,
See original GitHub issueI use:
[x ] ASP.NET Core Please mark the type of the runtime used:
[x ] .NET Core Version: 3.1 Please mark the NuGet packages used:
[ x] Sentry 2.0.0-beta8
My code is: public static IHostBuilder CreateHostBuilder(string[] args) => Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseSentry(); webBuilder.UseStartup(); });
When I try to call a controller method I get: Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Error: Connection ID “18374686502757072928”, Request ID “80000021-0005-ff00-b63f-84710c7967bb”: An unhandled exception was thrown by the application.
System.TypeLoadException: Could not load type ‘Microsoft.AspNetCore.Http.Internal.BufferingHelper’ from assembly ‘Microsoft.AspNetCore.Http, Version=3.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’. at Sentry.AspNetCore.SentryMiddleware.InvokeAsync(HttpContext context) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at Sentry.AspNetCore.SentryMiddleware.InvokeAsync(HttpContext context) at Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Hosting.HostingApplication.ProcessRequestAsync(Context context) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync() Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request finished in 10.2048ms 500
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
I was running a mix of version 1 and 2. I am now only using version 2, and it works. Thanks 👍
In this issue https://github.com/getsentry/sentry-dotnet/issues/311 It was suggest to use the latest beta. I did this and it works. @bruno-garcia do you know when will be available the stable of version 2?