2012-10-04 28 views
0

,則Windows Azure上的部署失敗我有一個Azure部署自幾個月以來一直在運行。我改變並重新部署了幾次,沒有任何問題。如果我添加一個<VirtualApplication>

現在我試圖添加第二個Web應用程序到相同的部署。我跟着博客文章在http://sanganakauthority.blogspot.ch/2012/02/hosting-multiple-virtual-applications.html,其中描述瞭如何通過添加<VirtualDirectory ...>標籤服務定義添加第二個Web應用程序:

<WebRole name="MyWebsite1"> 
    <Sites> 
    <Site name="Web"> 
     <VirtualApplication name="MyWebsite2" physicalDirectory="..\..\WebProject2\WebProject2"></VirtualApplication> 
    <Bindings> 
    ... 

我這樣做,並且在Azure的模擬器,一切工作正常。我可以在

http://127.0.0.2:81 

和新的,虛擬的訪問第一web應用在

http://127.0.0.2:81/MyWebsite2 

但是當我部署到Azure中,我得到在Visual Studio的Azure的控制檯下面的部署錯誤:

10:55:33 - Preparing deployment for {...} with Subscription ID: {...}... 
10:55:33 - Connecting... 
10:55:34 - Uploading Certificates... 
10:56:08 - Verifying storage account '{...}'... 
10:56:09 - Uploading Package... 
11:00:04 - The HTTP request to 'https://management.core.windows.net/{...}/services/hostedservices/{...}?embed-detail=true' has exceeded the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. 
11:00:04 - Deployment failed with a fatal error 

當我從服務中刪除定義<VirtualApplication>標籤,然後部署重新工作,像以前一樣。

如何找出造成此錯誤的原因?錯誤發生在實例啓動之前,所以RDP不起作用。

回答

0

沒關係,當我創建了第二<Site>代替<VirtualApplication>工作:

<WebRole name="MyWebsite1"> 
    <Sites> 
    <Site name="Web"> 
     <Bindings> 
     ... 
    </Site> 
    <Site name="MyWebsite2" physicalDirectory="..\..\WebProject2\WebProject2"> 
     <Bindings> 
     ... 
    </Site> 
    </Sites> 
    ... 
相關問題