Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after upgrading to ASP.NET Core 3.0 Preview 7 #293

Closed
IvanFarkas opened this issue Jul 25, 2019 · 2 comments · Fixed by #296
Closed

Error after upgrading to ASP.NET Core 3.0 Preview 7 #293

IvanFarkas opened this issue Jul 25, 2019 · 2 comments · Fixed by #296

Comments

@IvanFarkas
Copy link
Contributor

IvanFarkas commented Jul 25, 2019

Getting error after upgrading to ASP.NET Core 3.0 Preview 7.

  • Microsoft.AspNetCore.App 3.0.0-preview7.19365.7
  • Microsoft.NETCore.App 3.0.0-preview7-27912-14
  • .NET Core SDK 3.0.100-preview7-012821
11:29:43 [Error] () HTTP "POST" "/Service.svc" responded 500 in 2.7632 ms
System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Http.Internal.BufferingHelper' from assembly 'Microsoft.AspNetCore.Http, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
   at SoapCore.SoapEndpointMiddleware.Invoke(HttpContext httpContext, IServiceProvider serviceProvider)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at SoapCore.SoapEndpointMiddleware.Invoke(HttpContext httpContext, IServiceProvider serviceProvider)
   at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass4_1.<UseMiddleware>b__2(HttpContext context)
   at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext)

The fix is just like for Sentry
By referencing the fixed dll instead of the NuGet package it works again.

public async Task Invoke(HttpContext httpContext, IServiceProvider serviceProvider)
{
	//httpContext.Request.EnableRewind();
	httpContext.Request.EnableBuffering();
This was referenced Jul 29, 2019
kotovaleksandr added a commit that referenced this issue Jul 29, 2019
@kotovaleksandr
Copy link
Member

https://www.nuget.org/packages/SoapCore/0.9.9.8-alpha

@IvanFarkas
Copy link
Contributor Author

Fantastic! Thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants