【问题标题】:Publishing MVC3 webapp to Azure: Busy - Cycling将 MVC3 webapp 发布到 Azure:忙碌 - 骑自行车
【发布时间】:2012-05-30 16:10:01
【问题描述】:

我有一个包含 Bing Translate API 的 MVC3 Web 应用程序。在模拟器上一切正常,但是当我将它部署到 Windows Azure 时,我一次又一次地遇到这个问题(我重试了两次以上):

Instance 0 of role Website is busy
Instance 0 of role Website is cycling

它会在很长一段时间内停止骑行。 在门户中,我看到了这条消息:

Waiting for role to start... System is initializing

我已经选择了“Add deployable assemblies”,并检查所有引用Copy Local = true为真 我还检查了与我的帐户存储的连接字符串,我将我的项目设置为通过帐户存储在云上工作。

这里是我的必应翻译 API 的 web.config

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_LanguageService" closeTimeout="00:25:00"
          openTimeout="00:25:00" receiveTimeout="00:25:00" sendTimeout="00:25:00"
          allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
          maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
          messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
          useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None"
              realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://api.microsofttranslator.com/V2/soap.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_LanguageService"
        contract="BingTranslator.LanguageService" name="BasicHttpBinding_LanguageService" />
    </client>
  </system.serviceModel>

我已经搜索了很长时间,但没有任何东西适合我。请给我你的帮助。 最好的问候

【问题讨论】:

标签: deployment azure


【解决方案1】:

我可以告诉你一些关于如何将这些错误转换为一些信息的信息:

案例一:您的状态在网络角色中循环:

  1. WebRole 启动
  2. WebRole 忙
  3. WebRole 循环
  4. WebRole 未知状态
  5. WebRole 重新启动

这可能是一个特定于角色的问题,您最好的办法是 RDP 到您的实例并查找一些内容,即潜在异常的 Azure 诊断日志、事件日志、Azure BootStrapper 日志、IIS 配置器日志等。这将对您有所帮助比任何其他方法更快地找到问题,除非您可以从 Azure 存储中获取包含有关潜在问题的所有详细信息的 Azure 诊断日志。

情况二:您的状态在全机循环:

  1. 开始...
  2. 正在初始化...
  3. WebRole 启动
  4. WebRole 忙
  5. WebRole 循环
  6. WebRole 重新启动

这可能是 VM 本身正在循环的特定于机器的问题,这是联系 Windows Azure 支持团队为您进行调查的最佳人选。

【讨论】:

  • 最后我发现我的错误是Account key的名称错误,我忘记将默认设置连接字符串设置为Azure Storage。感谢大家的关注!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-01-05
  • 1970-01-01
  • 2013-11-24
  • 2023-03-15
  • 1970-01-01
相关资源
最近更新 更多