I'm working with an existing automation project that has been working fine. We've got it linked to testrail, and are able to post results there via JSON with no issues (prior to this). Recently, a part of our product that uses JSON updated and delivered a new version of the newtonsoft.json.dll file. The old version we have is 8.0, and the new version is 9.0.
First, I simply replaced the dll in our dll repo (we keep a centralized folder with all library dlls in it, because our projects are highly library dependent) and refreshed the ranorex project. I subsequently got this error when attempting to run the same modules:
Could not load file or assembly 'Newtonsoft.Json, Version=184.108.40.206, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I tried removing the reference entirely, and readding it, no luck. After finding this solution http://stackoverflow.com/questions/2250 ... ture-neutr, I tried adding the following to the app.config
No luck, same error.
Code: Select all
<dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-220.127.116.11" newVersion="18.104.22.168" /> </dependentAssembly>
I tried removing the JSON dll, and adding the package via NuGet, and I get an error in the package manager stating "microsoft.csharp already has a dependency defined for system.dynamic.runtime"
I've even done a search within every text based file in the ranorex project directory, attempting to locate any references to that dll file in any odd file, and was only able to find references in the reports files to the "file not found " exception generated when ranorex fails to find the 9.0 dll.
What I need to know, is how do I remove the stale reference to the 8.0 version of the JSON dll so that Ranorex will see the 9.0 version?