CANNOT DOWNLOAD INSTRUMENTS

vcb
vcb edited June 16 in .Net API client
This started happening today: .Monday, 16 June 2025
Kite assembly used:
dotnetkiteconnect-3.0.7
and
dotnetkiteconnect-4.3.0
Attempted to download instruments at @ 7:00 AM
On command used was List<Instrument> vNSEInstruList = cK.GetInstruments("NSE");
There was no response, the code just waited there.
Then restarted app using "Debug" - Kite cK = new Kite(KiteData.API_Key, null, null, true);
Got an exception message:
Could not load file or assembly 'CsvTextFieldParser, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
error On issuing the same command, List<Instrument> vNSEInstruList = cK.GetInstruments("NSE");
Same exception message received for both the Kite assemblies used.

App running on Visual Studio 2022, target framework .Net 8.0
Downloading works when app is run with framework 4.7.2

What mistake am i doing ? Please help.
  • vcb
    App running on Visual Studio 2022, target framework .Net 8.0
  • tonystark
    It looks like `CsvTextFieldParser` has compatibility issues with .NET 8. With framework 4.7.2 I think it will pull the old 3.x.x version of the library which is not recommended. KiteConnect is built with .NET 6 (for forward compatibility with newer versions).

    If this is a new project could you try .NET 7 or 6?
Sign In or Register to comment.