You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
I have test project that is testing api inside aps.net core project. For testing server I am using TestHost. Tests are failing with error that HTTP client dll cannot be loaded:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
....
=== Pre-bind state information ===
LOG: DisplayName = System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///C:/.../bin/Debug/net461/win7-x64/
LOG: Initial PrivatePath = NULL
Calling assembly : Api, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:....\bin\Debug\net461\win7-x64\dotnet-test-xunit.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
I don't have anywhere explicit dependency on HttpClient. While googling for solution I found same problem, just with different package: aspnet/Security#1046
Has anyone else experienced issue like this?
The text was updated successfully, but these errors were encountered:
Hi,
I have test project that is testing api inside aps.net core project. For testing server I am using TestHost. Tests are failing with error that HTTP client dll cannot be loaded:
I don't have anywhere explicit dependency on HttpClient. While googling for solution I found same problem, just with different package: aspnet/Security#1046
Has anyone else experienced issue like this?
The text was updated successfully, but these errors were encountered: