简体   繁体   English

远程调试msvsmon.exe VS2015或无法附加到进程时表达式计算器中的内部错误。 rpc服务器不可用

[英]Internal error in the expression evaluator when remote debugging msvsmon.exe VS2015 or unable to attach to the process. the rpc server is unavailable

System in written in C# , .Net4.5 . 系统用C# .Net4.5 I am trying to remote debug one of our Web APIs. 我正在尝试远程调试我们的一个Web API。 I am using msvsmon.exe (2015) on server and running Visual Studio 2015 on my local. 我在服务器上使用msvsmon.exe (2015)并在我的本地运行Visual Studio 2015

I can connect to process no problem and breakpoints are being hit, I am also sure I am running same version of code as I manually copied over dll and pdb files from my local machine to the server. 我可以连接到进程没有问题和断点被击中,我也确定我运行相同版本的代码,因为我手动复制dllpdb文件从我的本地机器到服务器。

I can't even inspect strings when they are fired into endpoint I get Internal error in the expression evaluator . 当它们被触发到端点时我甚至无法检查字符串我Internal error in the expression evaluator得到Internal error in the expression evaluator To remedy this error offered solution is to tick the box on Managed Compatibility Mode in Tools -> Options -> Debugging however, when I do this, when I try to attach to process in debug window, I get unable to attach to the process. the rpc server is unavailable 要解决此错误, 提供的解决方案是Tools -> Options -> Debugging中的Managed Compatibility Mode框中打勾 ,但是,当我这样做时,当我尝试在调试窗口中附加到进程时,我unable to attach to the process. the rpc server is unavailable unable to attach to the process. the rpc server is unavailable . unable to attach to the process. the rpc server is unavailable Solution to which offered is to untick that same box , lol. 提供的解决方案是解开同一个盒子 ,哈哈。

I have also tried in vain to enable Use the legacy C# and VB expression evaluators in debug options but that didn't do any good. 我也试图在调试选项中启用 Use the legacy C# and VB expression evaluators ,但这没有任何好处。

I am sure someone by now have ran into this problem.... How do I inspect objects when remote debugging on VS2015? 我相信现在有人遇到了这个问题.... 如何在VS2015上进行远程调试时检查对象?

I met the error "unable to attach to the process. the rpc server is unavailable" before which was related to the firewall, like Hans Passant's suggestion, you could test it again after you close/disable the firewall or other third party tools. 我遇到了错误“无法附加到进程.rpc服务器不可用”,之前与防火墙有关,就像Hans Passant的建议一样,您可以在关闭/禁用防火墙或其他第三方工具后再次测试它。 Of course, you could also add your VS Devenv.exe to the Firewall allow list like this thread, debug it again. 当然,您也可以将VS Devenv.exe添加到此线程的防火墙允许列表中,再次进行调试。

https://cerkit.com/2014/08/12/remote-debugging-issue-with-asp-net-unable-to-attach-to-the-process/ https://cerkit.com/2014/08/12/remote-debugging-issue-with-asp-net-unable-to-attach-to-the-process/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 关于 MSVSMON.EXE 的 Visual Studio 调试错误似乎没有运行 - Visual Studio debug error about MSVSMON.EXE not appear to be running Visual Studio 2019 - msvsmon.exe 意外退出。 .net 核心 1.1 项目将中止调试 - Visual Studio 2019 - msvsmon.exe unexpectedly exited. Debugging will be aborted with .net core 1.1 project “表达式计算器中的内部错误” - "Internal error in the expression evaluator" VS2015调试中出现错误“找不到mscoreei.dll” - Error “mscoreei.dll not found” in VS2015 debugging VS2015无法调试引用的DLL vs2015 - VS2015 unable to debug referenced dll vs2015 当 RPC 服务器不可用时设置远程 WMI 超时 - Set Timeout On Remote WMI when RPC Server Is Unavailable 当连接到远程计算机上的WMI时,RPC服务器不可用 - RPC server is unavailable when connecting to WMI on a remote computer 为什么从IEEE1641 STDTSF.xsd生成类时VS2015 xsd.exe报告错误 - Why VS2015 xsd.exe report error when generate classes from IEEE1641 STDTSF.xsd 取消选中后,vshost.exe仍在运行启用VS2015中的Visual Studio托管过程 - vshost.exe still running after uncheck Enable the Visual Studio hosting process in VS2015 无法开始调试。 无法启动启动项目。 VS2015 - Unable to start debugging. The startup project could not be launched. VS2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM