vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
521 stars 281 forks source link

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

Open Calx-Takeno opened 5 years ago

Calx-Takeno commented 5 years ago

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

vdemydiuk commented 5 years ago

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

Calx-Takeno commented 5 years ago

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.

vdemydiuk commented 5 years ago

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