I am trying to executing Entity Framework migrations from VSTS Release Management, for that I followed this link.
I configure this task in this way, before the deploying task for the application:
During release process I got the Exception, after executing the above task.
System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, 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)
In my Project I used the Newtonsoft.Json version as 9.0.1 because other DLL’s dependent on this version. So I strict to use the same version of Newtonsoft.Json.
app.config
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-9.0.1" newVersion="9.0.1" />
</dependentAssembly>
Before posting question here I search in Google and find out some the links related my issue but those are not helpful to resolve this issue.
I found similar issue in stack overflow but nobody can't post answer for that. This is the link for that question migrate.exe ignoring binding redirects
Can you please tell me how to resolve the above error as soon as possible?