References of References with COM caller [duplicate]
One workaround I found for this kind of problem is to include a config file in the same path of the executable who call the c# code.
I discovered that, if I create a VB6 application called "myapp.exe", I could create, in the same folder of "myapp.exe", a text file called "myapp.exe.config", with the following contents:
<?xml version="1.0" encoding="utf-8"?><configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime></configuration>
In your case, I believe the exe name would be "msaccess.exe" or something like that.