question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

I 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
R10-Rasmuscommented, Jan 28, 2020

I was running a mix of version 1 and 2. I am now only using version 2, and it works. Thanks 👍

1reaction
llamannacommented, Jan 27, 2020

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found