Wcf 可以RDP和attach调试器,MSVSMON.exe正在运行,但可以';t从我的单元测试进入云环境web角色

Wcf 可以RDP和attach调试器,MSVSMON.exe正在运行,但可以';t从我的单元测试进入云环境web角色,wcf,azure,visual-studio-2013,remote-debugging,azure-web-roles,Wcf,Azure,Visual Studio 2013,Remote Debugging,Azure Web Roles,我在Azure上有一个正在运行的WCFweb角色(不是ASP.NEThosted!)。我看过很多教程,尝试过很多,也看到了很多问题——没有一个与我的具体情况相符: 我能够与RDP连接 我在主机中看到MSVSMON.exe进程 我可以通过VS2013-Update4服务器资源管理器->实例->附加调试器…(顺便说一句,哪个进程是主机?) 服务工作:使用带有远程服务引用的单元测试进行测试 已禁用防火墙-仍然没有运气 我目前使用的是Azure SDK 2.5 但是当我试图从单元测试中进入时,它会说

我在Azure上有一个正在运行的
WCF
web角色(不是
ASP.NET
hosted!)。我看过很多教程,尝试过很多,也看到了很多问题——没有一个与我的具体情况相符:

  • 我能够与RDP连接
  • 我在主机中看到
    MSVSMON.exe
    进程
  • 我可以通过VS2013-Update4
    服务器资源管理器
    ->
    实例
    ->
    附加调试器…
    (顺便说一句,哪个进程是主机?)
  • 服务工作:使用带有远程服务引用的单元测试进行测试
  • 已禁用防火墙-仍然没有运气
我目前使用的是
Azure SDK 2.5

但是当我试图从单元测试中进入时,它会说远程操作花费的时间比预期的要长,然后:
无法自动进入服务器。连接到服务器计算机“*.cloudapp.net”失败。Microsoft Visual Studio远程调试监视器(MSVSMON.EXE)似乎未在远程计算机上运行。这可能是因为防火墙阻止了与远程计算机的通信。有关配置远程调试的帮助,请参阅帮助。

我错过了什么

csdef
文件:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="MyServiceWebRole.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2014-06.2.4">
  <WebRole name="MyServiceWebRole" vmsize="Small">
    <Sites>
      <Site name="Web">
        <Bindings>
          <Binding name="Endpoint1" endpointName="Endpoint1" />
        </Bindings>
      </Site>
    </Sites>
    <Endpoints>
      <InputEndpoint name="Endpoint1" protocol="http" port="80" />
    </Endpoints>
    <ConfigurationSettings>
      <Setting name="Variable_1" />
      <!-- ... -->
      <Setting name="Variable_N" />
    </ConfigurationSettings>
    <Imports>
      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />
    </Imports>
  </WebRole>
</ServiceDefinition>
<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="MyServiceWebRole.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="4" osVersion="*" schemaVersion="2014-06.2.4">
  <Role name="MyServiceWebRole">
    <Instances count="1" />
    <ConfigurationSettings>
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="***" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="***" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="2016-10-01T23:59:59.0000000+03:00" />
      <Setting name="Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled" value="true" />
      <Setting name="Variable_1" value="Variable_1_Value=" />
      <!-- ... -->
      <Setting name="Variable_N" value="Variable_N_Value" />
    </ConfigurationSettings>
    <Certificates>
      <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="***" thumbprintAlgorithm="sha1" />
    </Certificates>
  </Role>
</ServiceConfiguration>