简体   繁体   English

无法在Azure函数中加载文件或程序集'Newtonsoft.Json,Version = 10.0.0.0,Culture = neutral,PublicKeyToken = 30ad4fe6b2a6aeed'

[英]Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' in Azure Functions

I am refering a C# library project from my Azure Function (Service bus queue trigger). 我从Azure函数(服务总线队列触发器)引用了C#库项目。 The library is referencing the Newtonsoft nuget version 10.0.1. 该库引用的是Newtonsoft nuget版本10.0.1。 While running the function locally on my visual studio, it gives this error . 在我的Visual Studio上本地运行该功能时,会出现此错误。

{"Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.":"Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed"}

I tried downgrading to version 10.0.0, but the issue is there. 我尝试降级到10.0.0版,但是问题就在那里。

I stumbled upon this issue link : https://github.com/Azure/azure-functions-vs-build-sdk/issues/107 . 我偶然发现了这个问题链接: https : //github.com/Azure/azure-functions-vs-build-sdk/issues/107 And tried downgrading to 9.0.1. 并尝试降级到9.0.1。 But even then the error still occurs. 但是即使那样,错误仍然会发生。

Note: The library project reference several other library projects which are also referencing Newtonsoft. 注意:库项目引用了其他几个库项目,这些项目也都引用了Newtonsoft。 I am keeping the same version of the nuget all the sub projects. 我在所有子项目中都使用相同版本的nuget。

How to solve this issue? 如何解决这个问题?

将所有子库中的所有Newtonsoft dll指向版本9.0.1解决了该问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用 google api 加载文件或程序集“Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed” - Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' with google api 无法加载文件或程序集“Newtonsoft.Json,版本=8.0.0.0,Culture=neutral,PublicKeyToken=30ad4fe6b2a6aeed” - Could not load file or assembly 'Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' 无法加载文件或程序集“Newtonsoft.Json,Version=12.0.0.0,Culture=neutral,PublicKeyToken=30ad4fe6b2a6aeed”或其依赖项之一 - Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies 例:无法加载文件或程序集“ Newtonsoft.Json,版本= 6.0.0.0,文化=中性,PublicKeyToken = 30ad4fe6b2a6aeed”或其依赖项之一 - Exc.: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies 无法加载文件或程序集“Newtonsoft.Json,Version=9.0.0.0,Culture=neutral,PublicKeyToken=30ad4fe6b2a6aeed”或其依赖项之一 - Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies 无法加载文件或程序集 'Newtonsoft.Json,版本 = 10.0.0.0 - Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0 无法加载文件或程序集'Newtonsoft.Json,Version = 10.0.0.0' - 但bin文件夹中存在二进制文件 - Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0' - However binary exists in bin folder 无法加载文件或程序集'RadMenu.Net2,Version = 4.4.6.0,Culture = neutral,PublicKeyToken = bbe59a8ad3533e68' - Could not load file or assembly 'RadMenu.Net2, Version=4.4.6.0, Culture=neutral, PublicKeyToken=bbe59a8ad3533e68' 无法加载文件或程序集“Esri.ArcGISRuntime,版本=100.13.0.0,文化=中性,PublicKeyToken=8fc3cc631e44ad86” - Could not load file or assembly 'Esri.ArcGISRuntime, Version=100.13.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' Azure应用服务 - 无法加载文件或程序集'System.Net.Http,Version = 4.2.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a' - Azure app service - Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM