【发布时间】:2018-03-29 06:45:06
【问题描述】:
我的 Azure Web 作业有问题,它在本地运行,但不在 Azure 上运行。问题是由于:
Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembly 'Newtonsoft.Json, Version=9.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) at
Microsoft.Azure.WebJobs.ConverterManager..ctor()nat
Microsoft.Azure.WebJobs.JobHostConfiguration..ctor(String
dashboardAndStorageConnectionString)
我已经安装了Newtonsoft 10.0.0(某些库需要这个版本)并在 app.config 中设置了程序集重定向,但它不起作用。
您知道如何在 Azure Web 作业上启用融合吗?或者如何排查这类问题?
谢谢!
【问题讨论】:
-
在你的错误信息中,版本是9.0,但是你说你安装的是10.0版本。您能否提供更多详细信息。
-
显示你的代码!
-
@JanleyZhang 是的,绑定似乎无法正常工作......
标签: azure azure-webjobs azure-web-app-service