错误调试code在Visual Studio 2012 - 无法初始化客户端代理:无法连接到

问题描述:

我有调试单元测试在Visual Studio中的问题。我可以从罚款测试浏览器中运行它们。问题是,我不能踏进code和调试。另外,我能够调试的code其他地方所没有的单元测试。

I am having Issues debugging unit tests in visual studio. I can run them fine from test explorer. The issue is that I cannot step into the code and debug. Also, I am able to debug other parts of the code that are not unit tests.

当我直接从测试浏览器单击测试,然后单击调试我得到一个装载对话框加载符号从步骤f vstest.executionengine.x86.exe:\ biniaries \ VSET \ mstestexecutor.x8g.csproj_1420192002 \ objr \ X86 。经过几个这样的测试停止运行和我在测试显示在输出窗口下面的错误。

When I right click on the test from test explorer and click debug I get a loading dialog saying "Loading symbols for vstest.executionengine.x86.exe from f:\biniaries\vset\mstestexecutor.x8g.csproj_1420192002\objr\x86". After a few more of these the test stops running and I get the following error displayed in the output window under "Tests".

  ------ Run test started ------
  Failed to initialize client proxy: could not connect to .
  ========== Run test finished: 0 run (0:01:05.45) ==========

我已经试过如下:

I have tried the following:

  • 对于设置了此目录中缓存的符号设置新目录中。
  • 在重新安装VS2012与更新3
  • 与安全模式开关运行
  • 冉vs2012修复工具

在我来说,我发现,我需要运行Visual Studio以管理员身份。 HTH。

In my case I found that I needed to run visual studio as administrator. HTH.