Azure云服务定义问题

时间:2013-09-26 21:25:56

标签: azure azure-web-roles definition application-pool

我有一个云服务,在升级到Azure 2.0 SDK后运行良好一段时间。它现在神秘地停止了工作。我在Azure机器事件日志中得到了这个。

The application '/' belonging to site '19369254' has an invalid
AppPoolId 'ddcc23fe-8eee-4412-a4dd-56b50e18d9f2' set.  
Therefore, the application will be ignored.

其次是:

Site 19369254 was disabled because the root application defined for the site is 
invalid. See the previous event log message for information about why the 
root application is invalid.

和:

 A process serving application pool 'ddcc23fe-8eee-4412-a4dd-56b50e18d9f2'
 terminated unexpectedly. The process id was '3696'. 
 The process exit code was '0x103'.

我的服务定义:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="SMEEDI.Cloud" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2013-03.2.0">
<WebRole name="SMEEDI.Portal" enableNativeCodeExecution="true">
<Startup>
  <Task commandLine="startup.cmd" executionContext="elevated" taskType="simple"></Task>
</Startup>
<ConfigurationSettings>
  <Setting name="DiagnosticsConnectionString" />
  <Setting name="DataConnectionString" />
  <Setting name="BaseUrl" />
  <Setting name="DatabaseConnectionString" />
  <Setting name="Environment" />
</ConfigurationSettings>

<Sites>
  <Site name="Smeedi_WebRole" physicalDirectory="..\..\..\SMEEDI.Portal">
    <Bindings>
      <Binding name="HttpIn" endpointName="HttpIn" />
    </Bindings>
  </Site>
</Sites>
<Endpoints>
  <InputEndpoint name="HttpIn" protocol="http" port="80" />
</Endpoints>
<Imports>
  <Import moduleName="RemoteAccess" />
  <Import moduleName="RemoteForwarder" />
</Imports>
</WebRole>
</ServiceDefinition>
  1. 这怎么会突然停止工作?
  2. 服务定义有什么问题?

1 个答案:

答案 0 :(得分:0)

您收到的错误应该与CSDEF文件无关。在Azure实例上配置IIS似乎存在问题。

您可以尝试从Azure门户重新映像实例,或登录到实例以进行进一步的故障排除。如果您选择远程登录,我会检查IIS配置,特别是应用程序池和虚拟目录,尤其是路径,因为您在CSDEF中更改它。

Azure应该自己处理该配置,这就是为什么重新映像或删除和重新部署可能是更好的第一步。

相关问题