← Zurück

NuGet, ошибка при вызове refresh для FinamHistorySource.

Если использовать библиотеки через NuGet то возникают следующие ошибки, если использовать библиотеки с GitHab проблем нет.

System.TypeInitializationException occurred HResult=0x80131534 Message=The type initializer for '#=qyZ0TVlBnV4j95ut4Dwfq2wd44mfa0hYxetytapn7X2sPvAB9ReA0Z5ix7w_iKUVRt_fpYMQ3rVLFv2Gc8MtVpw==' threw an exception. Source=<Cannot evaluate the exception source> StackTrace: at #=qyZ0TVlBnV4j95ut4Dwfq2wd44mfa0hYxetytapn7X2sPvAB9ReA0Z5ix7w_iKUVRt_fpYMQ3rVLFv2Gc8MtVpw==.#=qWNdyRxA16pARIFAYdg3cxw==(String #=qE_ZHp4dCRLx2aco30U$BCg==) at StockSharp.Algo.History.Russian.MoexDownloader.GetSecurities(String code, IExchangeInfoProvider exchangeInfoProvider, Boolean isDownload) at StockSharp.Algo.History.Russian.Finam.FinamHistorySource.Refresh(ISecurityStorage securityStorage, Security criteria, Action1 newSecurity, Func1 isCancelled) at FinamLoad.MainWindow..ctor() in C:\Users......\Documents\Visual Studio 2017\Projects\WpfApp2\FinamLoad\MainWindow.xaml.cs:line 50

Inner Exception 1: FileNotFoundException: Could not load file or assembly 'System.IO.Compression, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Inner Exception 2: FileNotFoundException: Could not load file or assembly 'System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.


          var _finamHistorySource = new FinamHistorySource(new InMemoryNativeIdStorage(), new InMemoryExchangeInfoProvider());
            _finamHistorySource.Refresh(new FinamSecurityStorage(security), security, s => { }, () => false);// здесь ошибка

Kommentare (4)

Anmelden oder Konto erstellen, Melden Sie sich an oder registrieren Sie sich, um einen Kommentar zu hinterlassen

Support
Support

Добрый день,

Запускаемый файл не может определить путь к сборке System.IO.Compression. Попробуйте подключить напрямую данную сборку к проекту.

Иван З.
Иван З. Autor

Support: Добрый день,

Запускаемый файл не может определить путь к сборке System.IO.Compression. Попробуйте подключить напрямую данную сборку к проекту. Это не помогает. Я знаю как решить проблему, использовать библиотеки с GitHab. И там не надо определять путь к сборке System.IO.Compression Просто хочу обратить внимание на проблему с NuGet. NuGet на то и нужен чтоб ничего ручками не добавлять.

KROKS
KROKS
Support
Support

KROKS:

Сообщение пустое.