2011-05-02 64 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