【发布时间】:2015-11-22 03:30:41
【问题描述】:
Azure 网站 WebJob 在线,没有任何部署错误,并且在 WebJob SCM 控制台上没有可见任何级别的已部署 WebJobs 的错误,但以下情况除外:“主机未运行”和一些模糊信息(见下文)。我可以在 VisualStudio 2015 中本地启动 WebJob,它运行良好,但是我无法将调试器附加到已部署的 WebJob。 “父”MVC 5 网站作为 Azure 网站运行良好,我可以将调试器附加到它的控制器。
在这种情况下,“主机未运行”是什么意思?我如何/在哪里可以最好地查看问题所在?
我在 SCM 控制台中也得到以下内容,但我不确定在哪里运行 csc 命令。另外,我在我的网站配置中打开了详细的应用程序日志记录到表,这可能会提供更多的洞察力。
[08/27/2015 19:49:52 > 62f8a0: SYS ERR ] Job failed due to exit code 1
[08/27/2015 19:49:52 > 62f8a0: SYS INFO] Process went down, waiting for 60 seconds
[08/27/2015 19:49:52 > 62f8a0: SYS INFO] Status changed to PendingRestart
[08/27/2015 19:50:57 > 62f8a0: SYS INFO] Run script 'csc.exe' with script host - 'WindowsScriptHost'
[08/27/2015 19:50:57 > 62f8a0: SYS INFO] Status changed to Running
[08/27/2015 19:50:58 > 62f8a0: INFO] Microsoft (R) Visual C# Compiler version 1.0.0.50618
[08/27/2015 19:50:58 > 62f8a0: INFO] Copyright (C) Microsoft Corporation. All rights reserved.
[08/27/2015 19:50:58 > 62f8a0: INFO]
[08/27/2015 19:50:58 > 62f8a0: INFO] warning CS2008: No source files specified.
[08/27/2015 19:50:58 > 62f8a0: INFO] error CS1562: Outputs without source must have the /out option specified
[08/27/2015 19:50:58 > 62f8a0: SYS ERR ] Job failed due to exit code 1
[08/27/2015 19:50:58 > 62f8a0: SYS INFO] Process went down, waiting for 60 seconds
[08/27/2015 19:50:58 > 62f8a0: SYS INFO] Status changed to PendingRestart
【问题讨论】:
标签: azure azure-webjobs