Azure WebJobs NuGet Package Error

孤人 提交于 2019-12-02 01:46:24

Message=Microsoft.WindowsAzure.Storage is deployed incorrectly

TypeLoadException: Could not load type 'Microsoft.WindowsAzure.Storage.Table.DataServices.TableServiceContext' from assembly 'Microsoft.WindowsAzure.Storage, Version=9.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

According to your error message, I suppose the issue may be related with the compatibility.

TableServiceContext has been deprecated since version 4.0 and was removed in version 9.0 as part of dropping OData dependencies. You'd better use the compatible version for packages(such as WindowsAzure.Storage 8.7.0). For more details about this issue, you could read this article.

My problem was that I had an outdated nuget package. I tried to uninstall the nuget package, found it's dependency and from this I upgraded

Microsoft.Azure.WebJobs, Version=2.0.0.0

to

Microsoft.Azure.WebJobs, Version=2.2.0.0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!