I have the following error when I try to use my dll library: 'Could not load type 'System.Web.TraceContext' from assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.'
Some things to note:
- The Library is written in .Net Framework 4.5
- I am using .Net Core 3.1
- I have access to the Library and we are using: Microsoft.Windows.Compatibility" version="6.0.0-rc.1.21451.13" targetFramework="net45" to make it compatible
- I've noticed there are multiple versions on System.Web (2.0 AND 4.0) and others in the same vein
I had hoped to do as little as possible with the library since it is coming from another provider in my network.
CodePudding user response:
To sum up here, System.Web.TraceContext
is a library applied for .net framework, this official document section showed it.
And in .net core for diagnosis tracing, we may use .net core logging and tracing.