mathpaquette / IQFeed.CSharpApiClient

IQFeed.CSharpApiClient is fastest and the most well-designed C# DTN IQFeed socket API connector available
MIT License
121 stars 42 forks source link

Should_Return_MarketSymbols_From_Sample_Archive_File failing .net45 #10

Closed mathpaquette closed 6 years ago

mathpaquette commented 6 years ago

System.Net.WebException : The request was aborted: Could not create SSL/TLS secure channel. at System.Net.WebClient.DownloadFile(Uri address, String fileName) at IQFeed.CSharpApiClient.Lookup.Symbol.MarketSymbols.MarketSymbolDownloader.GetMarketSymbolsFile(String downloadPath, String marketSymbolsUrl) at IQFeed.CSharpApiClient.Lookup.Symbol.SymbolFacade.GetAllMarketSymbols(String downloadPath, String marketSymbolsArchiveUrl) at IQFeed.CSharpApiClient.Tests.Integration.Lookup.Symbol.SymbolFacadeTests.Should_Return_MarketSymbols_From_Sample_Archive_File()

Nucs commented 6 years ago

I need more information for reproducing this error. Calling MarketSymbolDownloader.GetMarketSymbolsFile(...) works fine for me.

mathpaquette commented 6 years ago

The issue still persist on Framework 4.5.....

mathpaquette commented 6 years ago

@license786 can you please put the screenshot here.

license786 commented 6 years ago

Visual Studio 2017

iqfeed symbol downloader

Nucs commented 6 years ago

@license786, If the ssl issue still persists, Please try this answer and let us know the results. https://stackoverflow.com/a/48930280

Regarding the problem with ZipFile, @mathpaquette, we'll need to add nuget reference to System.Compression because it has issues in NET45 (only to this framework). See: https://stackoverflow.com/a/48431402

mathpaquette commented 6 years ago

@Nucs the weird thing about the compression, @license786 targeting 4.6.1.... on my side it runs flawlessly

license786 commented 6 years ago

What is the solution, i should try for now.

I tried both: ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; and ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

https://stackoverflow.com/questions/2859790/the-request-was-aborted-could-not-create-ssl-tls-secure-channel/48930280#48930280

mathpaquette commented 6 years ago

@Nucs on his computer, I had to uninstall the IQFeed.Client change the target to NET4.5 reinstall to fix the issue.