使用Azure Compute Emulator调整角色实例的问题,“/”应用程序中的服务器错误

时间:2011-05-02 15:31:20

标签: visual-studio-2010 azure azure-web-roles webrole

我为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 Server中部署而不是在Compute Emulator中。 我不知道它为什么会这样,并且在启动新实例时根本不使用web.config。 enter image description here

1 个答案:

答案 0 :(得分:2)

是否可以像在Visual Studio中选择启动项目一样简单?