【发布时间】:2015-08-11 03:47:52
【问题描述】:
我正在使用 Windows Azure Web Jobs 来执行我使用 LinqToTwitter 获取推文的方法。我的 web.config 文件有
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.22.0" newVersion="4.2.22.0" />
</dependentAssembly>
当我调试我的测试项目时,我没有收到任何错误。但是在将我的 web api 发布到 Azure 之后,当 web 作业运行时,我遇到了以下错误:
System.IO.FileNotFoundException:无法加载文件或程序集 'System.Net.Http.Primitives,版本=1.5.0.0,文化=中性, PublicKeyToken=b03f5f7f11d50a3a' 或其依赖项之一。这 系统找不到指定的文件。
查看更多log info here。
【问题讨论】:
-
link 希望对您有所帮助
-
嗨@Sachu,我已将Microsoft Http 客户端库和LinqToTwitter 更新到最新版本。现在我得到不同的错误。错误:LinqToTwitter.TwitterQueryException:url 参数丢失或无效。justpaste.it/lezv
-
嘿,现在一切正常。解决方案是更新两个 dll,并根据Joe mayo's solution,我也可以修复 Missing or invalid url parameter 错误。
标签: c# asp.net nuget azure-webjobs linq-to-twitter