I am fairly new to .net core.After working on this error for 2 days straight I am at a complete loss at how to fix this. I am using a software SDK that interacts with our ERP. The first time I tried to run the code, the error I got was:
System.AggregateException: One or more errors occurred. (Could not load file or assembly 'System.Data.SqlClient, Version=4.6.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.)
So I realized I was missing the assembly and installed 4.6.0 and I get the following error:
The located assembly's manifest definition does not match the assembly reference
After that I tried version(4.8.0) and got the following error:
System.AggregateException: One or more errors occurred. (Field not found: 'Microsoft.Win32.Registry.DynData'.)
---> System.MissingFieldException: Field not found: 'Microsoft.Win32.Registry.DynData'.
Although I just tried to switch back to 4.6.0 again and now Rider is telling me its not compatible with dotnet 3.0.
I've also tried using the following in web.config:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Data.SqlClient" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="4.5.0.0" newVersion="4.6.0.0" />
</dependentAssembly>
</assemblyBinding>
Any help is appreciated.