角色实例的启动时间比预期的要长 - 是否有针对此问题的新解决方案? [英] Role instances are taking longer than expected to start - Is there a new solution to this problem?

查看:30
本文介绍了角色实例的启动时间比预期的要长 - 是否有针对此问题的新解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这周我重启了 50-100 次电脑.我发现在收到此消息之前,我通常可以在本地启动/部署 3-4 次:

I've rebooted my computer 50-100 times this week. I find I can start / deploy locally usually 3-4 times before getting this message:

Microsoft Visual Studio 的 Windows Azure 工具

"Windows Azure Tools for Microsoft Visual Studio

角色实例的启动时间比预期的要长.要继续等待吗?"

Role instances are taking longer than expected to start. Do you want to continue waiting?"

让我重新开始的解决方案是重新启动.

The solution to get me going again is rebooting.

我知道这不是一个新问题.我记得 MS 同意这是一个问题,但是否有人有不涉及返回托管 Web 核心的解决方案.似乎这个问题是很多人都会遇到的问题,并且(据我所知)已经有 4-5 个月或更长时间没有解决方案了.

I know it's not a new problem. I recall that MS agreed it was a problem but does anyone have a solution that does not involve going back to the Hosted Web Core. Seems like this problem is something a lot of people get and it's been around without a resolution (that I know of) for 4-5 months or more.

现在我要重新开始重新启动!!!!!!

Now I'll get back to doing another reboot !!!!!

推荐答案

据我所知,有几种不同的因素会导致此问题.

From what I understand, there are a few different things that can cause this issue.

对我而言,在为 Azure 部署创建 Windows Identity Foundation 启动任务并尝试使用 Azure 模拟器运行我的应用程序后,我遇到了此错误.

For me, I encountered this error after I created a Windows Identity Foundation Startup Task for my Azure deployment and then tried to run my application using the Azure Emulator.

基本上,我需要做的就是将启动任务的 taskTypesimple 更改为 background

Basically, all I needed to do was change the taskType of the Startup Task from simple to background

ServiceDefinition.csdef

<Startup>
  <Task commandLine="StartupIdentityGac.cmd" executionContext="elevated" taskType="background"></Task>
</Startup>

根据您的问题,我不确定这是否适用于您的项目,但我认为它至少值得一提.

Based on your question, I'm not sure if this applies to your project, but I figured it would at least be worth mentioning.

您可以阅读我的完整博客文章 这里.

You can read my full blog post here.

这篇关于角色实例的启动时间比预期的要长 - 是否有针对此问题的新解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆