Unable to retrieve type info for assembly 'Npgsql': Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
The order of events:
I wanted to use Visual Studio with NT8. There is no .sln file in NT8 [anymore] so I imported the .csproj file instead. Knowing it would overwrite things, I saved all the NinjaTrader.Custom.* files first.
when I tried "attach to process", it failed. I found an article called
"8.1.3.0 crashes on Attach to Process in Visual Studio 2022"
I'm not going to uninstall all my indicators, etc, so that means I'm going to skip using VS until that is fixe [if ever].
Then, in NT, I wanted to use Volumetric bars, and when I tried, I got this:
I asked my associate and he said I need a different license.
But then today, when I opened NT, I was getting an error. I thought it was related to the volumetric bars, but that chart wasn't even open anymore. But I'm not sure of the exact text of the message.
Then I got an email from Replikanto saying that v8.1.4.1 was available to fix bugs from 8.1.4.0. NT doesn't seem to have any automated way to install updates, so I downloaded it and installed.
Once that was done, I could start up the program, but when I tried to apply my Strategy, it crashed, with this error:
Strategy 'MyStrategy': Error on calling 'OnBarUpdate' method on bar 6615602: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
Disabling NinjaScript strategy 'MyStrategy/332258875'
MyStrategy uses npgsql.dll and was working fine before.
I asked ChatGPT how to fix it and it said I needed to update/change my npgsql.dll file, though I'm not sure why unless it's a change caused by new NT8 version...
I downloaded several different versions from netstandard2.0 and net461 folders of the npgsql packages, but none of them changed anything.
Then I read this article:
"After installing new version getting error msg: Unable to retrieve info for ..."
...and tried putting back the old NinjaTrader.Custom.* files. That didn't help. I tried deleting them, and letting it re-create them. That didn't help.
Then I ran out of ideas to try.

Comment