【发布时间】:2015-06-03 00:21:48
【问题描述】:
更新到 Azure SDK 2.6(从 2.5.1)后,我无法发布我的 Azure Worker Role 实例。它之前一直在使用 2.5.1 SDK。工作进程无法在 Azure 中启动并挂起,状态为:
忙(等待角色启动...应用程序启动任务正在运行。[2015- 06-02T23:27:56Z] 最后一个角色错误:退出代码 - 0,退出时间 - [2015/06/02, 23 :27:20.218])
工作进程确实使用了 Azure 诊断 - 在我的服务定义文件中配置,例如:
<Imports>
<Import moduleName="RemoteAccess" />
<Import moduleName="RemoteForwarder" />
<Import moduleName="Diagnostics"/>
</Imports>
我确实在工作虚拟机的事件日志中看到了一个错误:
System.UnauthorizedAccessException: Access to the path 'DiagnosticPlugin-ShutdownEvent' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Threading.EventWaitHandle..ctor(Boolean initialState, EventResetMode mode, String name)
at Microsoft.WindowsAzure.Plugins.Launcher.Program.MainImpl(String[] args)
at Microsoft.WindowsAzure.Plugins.Launcher.Program.Main(String[] args)
我只是不确定如何解决这个问题。有什么想法吗?
【问题讨论】:
标签: azure azure-worker-roles azure-diagnostics