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

StackOverflow https://stackoverflow.com/questions/5859065

سؤال

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

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top