Skip to content

Could not load file or assembly 'System.Buffers, Version=4.0.2.0' #7

@KoalaBear84

Description

@KoalaBear84

First, a big thanks!

Expected Behavior

No assembly errors

Actual Behavior

HttpRecorder.HttpRecorderException
  HResult=0x80131500
  Message=Error while writing file D:\Repositories\20200817_102908.har: Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  Source=HttpRecorder
  StackTrace:
   at HttpRecorder.Repositories.HAR.HttpArchiveInteractionRepository.StoreAsync(Interaction interaction, CancellationToken cancellationToken)
   at HttpRecorder.HttpRecorderDelegatingHandler.<SendAsync>d__16.MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at NameSpaces.<GetDivisionsAsync>d__35.MoveNext() in D:\Repositories\File.cs:line 17

Inner Exception 1:
FileLoadException: Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Steps to Reproduce the Problem

Good question. I have a project which I added HttpRecorder nuget, and a

Project Host = .NET Framework 4.7.1
Project Lib (with HttpRecorder nuget/code) = .NET Standard 2.0
Tests project = .NET Framework 4.7.1

  1. Running test which call HTTP code with HttpRecorder
  2. Get error on first request

Specifications

  • Version: HttpRecorder 2.0.0
  • Platform: Windows 10 Enterprise 1909
  • Subsystem: ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions