我有一个包含 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>
我已经搜索了很长时间,但没有什么对我有用。请给我你的帮助。此致