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

System in written in C#, .Net4.5. I am trying to remote debug one of our Web APIs. I am using msvsmon.exe (2015) on server and running Visual Studio 2015 on my local.

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.

I can't even inspect strings when they are fired into endpoint I get 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. 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.

I am sure someone by now have ran into this problem....

How do I inspect objects when remote debugging on VS2015?

Talk1:

Common question. You've tried all the known workarounds, there aren't anymore. What they basically do is bypass the new VS2015-specific code in the debugging engine. It is very buggy, the price of agile, work on it gets postponed repeatedly. All you can do next is call Microsoft Support. Fwiw, you ought to take that RPC error a little more serious. Might well be the underlying problem with the expression evaluator. Environmental issue, disable anti-malware and firewall and whatever other shovelware wants to network.

Talk2:

Vaitkevicius, what about this issue? Could you share us the latest information about this issue?

Talk3:

-MSFT There isn't any information, I simply added insane amount of oldschool logging that writes to text files and solved my issues that way....

Solutions1

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. Of course, you could also add your VS Devenv.exe to the Firewall allow list like this thread, debug it again.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值