gpt4 book ai didi

c# - Azure Web作业失败 : Could not load file or assembly

转载 作者:太空宇宙 更新时间:2023-11-03 18:24:42 25 4
gpt4 key购买 nike

如何将 DLL 文件添加到 Azure WebJob,或链接到相应 Azure AppService 中随时可用的 DLL 文件?

我的 WebJob 是一个控制台应用程序,每天在 Cron 架构上运行。

当我手动测试它时,它失败了

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'MyIISApp, Version=1.2.3.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

但我无法在 Azure WebJob 文件上传过程中选择多个文件。

我已经尝试将 EXE 文件与 DLL 一起上传到我的 Azure AppService,但我无法在 WebJobs 选项卡中的任何位置选择此 EXE 文件执行 - 它始终需要上传单个文件。

最佳答案

上传 .zip 文件而不是 .exe 文件。 zip 必须包含所有必需的文件(exe、dll 等)

关于c# - Azure Web作业失败 : Could not load file or assembly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37725450/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com