visual-studio-2010 - 使用 Azure 计算模拟器调试角色实例的问题, '/' 应用程序中的服务器错误

标签 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 服务器中,而不是部署在计算模拟器中。 我不知道为什么它会这样,并且在启动新实例时根本不使用 web.config。 enter image description here

最佳答案

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

关于visual-studio-2010 - 使用 Azure 计算模拟器调试角色实例的问题, '/' 应用程序中的服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5859065/

相关文章:

azure - Azure CLI 的代理身份验证

azure - 是否可以禁用 kudu scm

Azure 全局管理员无法(已禁用)添加 "Access Control(IAM)"下的角色

azure - 如何从已发布的 Web 角色 VS2012 项目中的 powershell 脚本运行 Azure cmdlet

c++ - 当我调试方法 AttachThreadInput() 时,Visual Studio 2010 挂起

visual-studio-2010 - 对象与 DesignData 中的目标类型不匹配

azure - 通过 HTTP 使用 ServiceBusTrigger 调用 Azure 函数会抛出 InvalidOperationException

c# - ASP.NET FTP 部署

asp.net - Visual Studio 2012 中的 DotNetNuke 网站项目

.net - 如何保护 SQL Azure 数据库连接的凭据?