azure-webjobs - Azure WebJobs ConsoleApp 错误

标签 azure-webjobs

我在周末尝试了 WebJobs,并且我的控制台应用程序运行良好 - 直到今天。它开始失败,并在日志页面上显示此错误消息:

[03/26/2014 19:21:30 > 8fa263: SYS INFO] Status changed to Initializing
[03/26/2014 19:21:31 > 8fa263: SYS INFO] Run script 'IncidentPoll.exe' with script host - 'WindowsScriptHost'
[03/26/2014 19:21:31 > 8fa263: SYS INFO] Status changed to Running
[03/26/2014 19:21:31 > 8fa263: ERR ] 'IncidentPoll.exe' is not recognized as an internal or external command,
[03/26/2014 19:21:31 > 8fa263: ERR ] operable program or batch file.
[03/26/2014 19:21:31 > 8fa263: SYS INFO] Status changed to Failed
[03/26/2014 19:21:31 > 8fa263: SYS ERR ] Job failed due to exit code 1

今天早上我没有改变任何东西。所以我想知道自上周末以来政策是否发生变化?

编辑:此网络作业位于网站免费层下。计划每 10 分钟发射一次。难道是因为他们(微软)发现这是一个漏洞?他们还有一个(专用)调度程序服务(预览版),在免费套餐下,您可以运行的最大频率是每小时一次。

最佳答案

在从 run.cmd 运行可执行文件时,我遇到了非常类似的问题。所以我启动了Kudu debug console并手动调用run.cmd。结果如下:

'Foo.exe' is not recognized as an internal or external command, operable program or batch file.

现在很清楚,罪魁祸首就是那个奇怪的  前缀。快速网络搜索出现了UTF-8 without BOM这揭开了问题的神秘面纱 - Visual Studio 添加了一个 UTF BOM header ,该 header 混淆了 Kudu (Azure) shell。

幸运的是,该线程还包含一个简单的修复。在 Visual Studio 中:文件 -> 高级保存选项 -> 编码 -> Unicode(UTF-8 无签名)

关于azure-webjobs - Azure WebJobs ConsoleApp 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22676347/

相关文章:

Azure Function App无法将表绑定(bind)到类型 'Microsoft.WindowsAzure.Storage.Table.CloudTable'

azure - 在锁定的生产环境中查看 Azure Webjob 应用程序设置

Azure Web作业授权错误

azure - 具有不同参数的多个相同的 azure WebJobs

c# - 无法将参数 'log' 绑定(bind)到类型 TraceWriter

sockets - Azure Web App 套接字数量有什么限制?

azure - Microsoft Azure 中的 Azure Web 作业和 Azure Scheduler 之间的区别?

基于Azure webjobs计划,何时关闭主机?

azure-webjobs - 将 ETW 事件发送到 Application Insights?

azure - 在 Azure WebJobs 中写入和读取本地存储