I have created an Azure function and as we know it has the package Microsoft.NET.Sdk.Functions 1.0.8 which is dependent on Newtonsoft.Json 9.0.1.
I have added another class library as a reference to this Azure Function which depends on Newtonsoft.Json 11.0.2.
During runtime, I get an error stating:
<blockquote>
"FileNotFoundException: Could not load file or assembly
'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The
system cannot find the file specified."
</blockquote>
This looks like a problem related to Assembly Binding Redirects so I follow this solution to try and fix
<a href="https://codopia.wordpress.com/2017/...-binding-redirect-problem-in-azure-functions/" rel="nofollow noreferrer">https://codopia.wordpress.com/2017/...-binding-redirect-problem-in-azure-functions/</a>
But, this doesn't help as well.
Is there a step that I'm missing or any other workaround for this kind of case? Help is appreciated.
I have added another class library as a reference to this Azure Function which depends on Newtonsoft.Json 11.0.2.
During runtime, I get an error stating:
<blockquote>
"FileNotFoundException: Could not load file or assembly
'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The
system cannot find the file specified."
</blockquote>
This looks like a problem related to Assembly Binding Redirects so I follow this solution to try and fix
<a href="https://codopia.wordpress.com/2017/...-binding-redirect-problem-in-azure-functions/" rel="nofollow noreferrer">https://codopia.wordpress.com/2017/...-binding-redirect-problem-in-azure-functions/</a>
But, this doesn't help as well.
Is there a step that I'm missing or any other workaround for this kind of case? Help is appreciated.