Search code examples
c#exceptionthread-exceptionsmetatrader4

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


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)?


Solution

  • 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.