3

我有一个云服务在升级到 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. 服务定义有什么问题?
4

1 回答 1

0

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

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

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

于 2013-09-27T13:14:32.387 回答