2012-01-11 57 views
0

雖然在URL'http://azurephp.interoperabilitybridges.com/articles/build-and-deploy-a上仔細地執行'構建和部署Windows Azure PHP應用程序'頁面上的步驟-Windows-Azure的PHP應用程序」,我會遇到以下錯誤在做‘運行命令時運行在本地開發環境’一步PHP應用程序:Windows Azure for 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:\> 

任何人可以幫助我失去什麼或什麼? 我已經手動完成了此頁面上的步驟。手動並仔細地完成Pre Requisites修改

回答

2

ServiceDefinition.csdef文件的第15行是什麼?我猜這將是以下

<Variable name="EMULATED"> <RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" /> </Variable>

嘗試通過與普通的HTML註釋標籤包裝它註釋掉整個版面(),並再次運行該程序包命令。

+0

謝謝本。它運作良好。除了你的解決方案,我會考慮MSTS建議使用最新的SDK 1.6,因爲我使用的是1.4。 (我的網站建議使用1.4) – turkongwalayr 2012-01-12 02:22:17

相關問題