Search code examples
visual-studio-2010azureazure-web-roleswebrole

Debugging problem for a Role instance with Azure Compute Emulator,Server Error in '/' Application


I create a new service of notification for a webRole I defined the service in 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>

But when i try to debug and start a new instance of a webrole, the service deploys in ASP.net Server not in Compute Emulator. I don't know why it is acting like this and the web.config isn't used at all in starting the new instance. enter image description here


Solution

  • Could it be as simple as not selecting the cloud project as the Start Project in Visual Studio?