评估需要一个线程临时运行。使用“监视”窗口执行评估 [英] Evaluation requires a thread to run temporarily. Use the Watch window to perform the evaluation

查看:867
本文介绍了评估需要一个线程临时运行。使用“监视”窗口执行评估的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完全卡住。尝试在VS 2010的立即窗口中运行方法时,我正在测试 MetaTrader API 并获得下一个错误:


在mscorlib.dll中发生类型为System.Threading.ThreadAbortException的第一次机会异常



A System.Runtime.Remoting.dll中出现类型System.Threading.ThreadAbortException的第一次机会异常

评估需要一个线程临时运行。使用监视窗口执行评估。


这是什么意思?可能是因为运行时版本差异(api 2.0,app 4.0)?

解决方案

这是因为服务器在.NET下运行2.0和客户端(通过.NET Remoting) - 在.NET 4.0下。



将客户端切换到.NET 2.0 / 3.5修复了问题。


I'm completely stuck. I'm testing MetaTrader API and getting next error when tries to run a method in the Immediate Window of VS 2010:

A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll

A first chance exception of type 'System.Threading.ThreadAbortException' occurred in System.Runtime.Remoting.dll

Evaluation requires a thread to run temporarily. Use the Watch window to perform the evaluation.

What does it mean? Can it happens because of runtime versions difference (api 2.0, app 4.0)?

解决方案

That's because the server is running under .NET 2.0 and a client (thru .NET Remoting) - under .NET 4.0.

Switching client to .NET 2.0/3.5 fixed the problem.

这篇关于评估需要一个线程临时运行。使用“监视”窗口执行评估的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆