我有一个 NserviceBus 处理程序,通常作为服务安装在 VM 上。我们正试图让它在 Azure 上作为 PAAS 工作。因此,想法是将解决方案发布为 azure webjob。当我将它作为网络作业发布时,我得到了一个挂起的启动状态。日志指示以下内容。
[02/27/2017 09:35:10 > 2cf107: SYS INFO] Run script 'ENSource.Handlers.exe' with script host - 'WindowsScriptHost'
[02/27/2017 09:35:10 > 2cf107: SYS INFO] Status changed to Running
[02/27/2017 09:35:10 > 2cf107: INFO] Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.
[02/27/2017 09:35:10 > 2cf107: SYS INFO] Status changed to Success
[02/27/2017 09:35:10 > 2cf107: SYS INFO] Process went down, waiting for 60 seconds
[02/27/2017 09:35:10 > 2cf107: SYS INFO] Status changed to PendingRestart
我错过了什么?如何让 NServiceBus 处理程序在 Azure 上作为 WebJobs 工作?