在网址'http://azurephp.interoperabilitybridges.com/articles/build-and-deploy-a-windows-azure-php-application上仔细执行“构建和部署Windows Azure PHP应用程序”页面的步骤',在运行命令时执行'在本地开发环境中运行PHP应用程序'步骤时遇到以下错误:
package create -in="C:\temp\WindowsAzurePHPApp" -out="C:\temp\WindowsAzurePHPApp\build" -dev=true
C:\>package create -in="C:\temp\WindowsAzurePHPApp" -out="C:\temp\WindowsAzurePH
PApp\build" -dev=true
Windows(R) Azure(TM) Packaging Tool version 1.4.0.0
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.
C:\temp\WindowsAzurePHPApp\ServiceDefinition.csdef (15, 12): Error CloudService
s051 : The XML specification is not valid: The required attribute 'value' is mis
sing.
C:\temp\WindowsAzurePHPApp\ServiceDefinition.csdef (15, 37): Error CloudService
s051 : The XML specification is not valid: The element cannot contain white spac
e. Content model is empty.
C:\temp\WindowsAzurePHPApp\ServiceDefinition.csdef (16, 14): Error CloudService
s051 : The XML specification is not valid: The element 'http://schemas.microsoft
.com/ServiceHosting/2008/10/ServiceDefinition:Variable' cannot contain child ele
ment 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition:Role
InstanceValue' because the parent element's content model is empty.
Windows(R) Azure(TM) Desktop Execution Tool version 1.4.0.0
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.
Starting the storage emulator...
Windows(R) Azure(TM) Desktop Execution Tool version 1.4.0.0
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.
Starting the compute emulator...
Windows(R) Azure(TM) Desktop Execution Tool version 1.4.0.0
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.
Using session id 1
Windows(R) Azure(TM) Desktop Execution Tool version 1.4.0.0
for Microsoft(R) .NET Framework 3.5
Copyright (c) Microsoft Corporation. All rights reserved.
Using session id 1
**The compute emulator had an unexpected error: Can't locate service descriptions.**
.
C:\temp\WindowsAzurePHPApp\build/WindowsAzurePHPApp.cspkg
C:\>
任何人都可以帮助解决我所遗漏的问题或其他事情吗? 我已手动完成此页面上的步骤。还手动完成了先决条件并仔细转动
答案 0 :(得分:2)
ServiceDefinition.csdef文件的第15行是什么?我猜这将是以下
<Variable name="EMULATED">
<RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" />
</Variable>
尝试通过使用普通HTML注释标记()包装它来注释掉整个部分,然后再次运行包命令。