problème de débogage pour une instance de rôle avec Azure Compute Emulator, Erreur de serveur dans application « / »
-
27-10-2019 - |
Question
Je crée un nouveau service de notification pour un WebRole Je définissais le service dans 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>
Mais quand j'essaie de déboguer et de commencer une nouvelle instance d'un WebRole, le service se déploie dans ASP.net serveur non Compute Emulator. Je ne sais pas pourquoi il agit comme ça et le web.config ne sert pas du tout en commençant la nouvelle instance.
La solution
Could it be as simple as not selecting the cloud project as the Start Project in Visual Studio?
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow