2011-05-02 71 views
0

我的webRole 創建的通知新服務中的服務器錯誤角色實例調試的問題,我在web.config中與Azure計算仿真器,在「/」應用

<system.serviceModel><services> 
    <!-- Notification Service Definition --> 
    <service behaviorConfiguration="NotificationServiceBehaviors" name="Paw.Services.NotificationService"> 
    <endpoint binding="basicHttpBinding" contract="Paw.Services.INotificationService" /> 
    </service> 
</services> 

<behaviors> 
    <serviceBehaviors> 
    <behavior name="NotificationServiceBehaviors"> 
     <serviceMetadata httpGetEnabled="true" /> 
    </behavior> 
    </serviceBehaviors> 
</behaviors></system.serviceModel> 

但定義的服務時,我嘗試調試並啓動一個新的webrole實例,該服務將在ASP.net服務器中部署,而不是在Compute Emulator中。 我不知道爲什麼它是這樣的,而web.config根本沒有用於啓動新的實例。 enter image description here

回答

2

難道不像在Visual Studio中選擇雲項目一樣簡單?

+0

沒有鏈接,我只有2個端點可能,但它試圖部署在另一個endpoint.I把更多的細節 – 2011-05-04 14:03:29

+0

所以,你肯定有云項目在Visual Studio中標記爲啓動項目和VS是忽略選項並運行Cassini服務器?當你右鍵點擊Cloud Project(而不是WCF服務)並選擇Debug> Start New Instance時會發生什麼? – dunnry 2011-05-09 12:52:27

+0

哦是的,這解決了我沒有考慮調試雲項目的問題,而不是o_O謝謝:) – 2011-05-09 14:12:02