Visual studio 2010 使用Azure Compute Emulator调试角色实例时出现问题,'/';应用

Visual studio 2010 使用Azure Compute Emulator调试角色实例时出现问题,'/';应用,visual-studio-2010,azure,azure-web-roles,webrole,Visual Studio 2010,Azure,Azure Web Roles,Webrole,我为webRole创建了一个新的通知服务 我在web.config中定义了服务 <system.serviceModel><services> <!-- Notification Service Definition --> <service behaviorConfiguration="NotificationServiceBehaviors" name="Paw.Services.NotificationService"> &l

我为webRole创建了一个新的通知服务 我在web.config中定义了服务

<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。

是否可以简单到不选择云项目作为Visual Studio中的开始项目?

与此无关,我只有两个可能的端点,但它正在尝试部署到另一个端点。我提供了更多详细信息,您肯定在VisualStudio中将云项目标记为启动项目,而VS忽略该选项并运行Cassini服务器?当您右键单击云项目(而不是WCF服务)并选择“调试>启动新实例”时会发生什么?哦,是的,这解决了问题,我没有考虑调试云项目,而是o_o谢谢:)