mtapi icon indicating copy to clipboard operation
mtapi copied to clipboard

The type initializer for 'log4net.Core.LoggerManager' threw an exception. in "MTApiService"

Open Calx-Takeno opened this issue 6 years ago • 3 comments

at log4net.Core.LoggerManager.GetRepository(Assembly repositoryAssembly) at log4net.LogManager.GetRepository() at MTApiService.LogConfigurator.Setup(String profileName) at MtApi5.MtApi5Client..ctor() at Forex.Services.QueryService..ctor() in D:\Test\Forex.EA\Forex.Services\QueryService.cs:line 19 at lambda_method(Closure , Object[] ) at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate() in C:\projects\autofac\src\Autofac\Core\Activators\Reflection\ConstructorParameterBinding.cs:line 127

The newest version MtApi5 installation file (64 bit): MtApi5_Setup_x64.exe (ver. 1.0.20, updated 27.05.2019).

Calx-Takeno avatar May 27 '19 14:05 Calx-Takeno

Can you try to run test application to reproduce the same issue? I can't reproduce it in my environment.

vdemydiuk avatar May 28 '19 09:05 vdemydiuk

It appears on .NET Core 2.2 environment. I try it in .NET Framework 4.6.1. It works well. Could mtapi support .NET Core 2.0+ Or .NET Stand 2.0? I have some AI libraries and ML libraries base on .NET CORE.

Calx-Takeno avatar May 28 '19 12:05 Calx-Takeno

I think it's impossible. I have used WCF as communication core and it requires .NET 4+.

vdemydiuk avatar May 28 '19 16:05 vdemydiuk