Trouble getting IOrderStore Service while upgrading

Discussions related to custom development with Select.
Post Reply
dutil
Posts: 33
Joined: Thu Dec 19, 2019 12:10 pm

Trouble getting IOrderStore Service while upgrading

Post by dutil »

We have a custom app that connects into SoftPro and since we began upgrading to 4.6.5 (from 4.3.x), we are getting the following error:

Exception has been thrown by the target of an invocation:
Inner Exception: The type initializer for 'SoftPro.Select.Client.Formula.FormulaCompilationConfiguration' threw an exception.
Inner Exception: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

This is happening when we attempt to get an instance of the IOrderStore Service.
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: Trouble getting IOrderStore Service while upgrading

Post by BobRichards »

The question has to do with the user being unable to run a custom package, which happens to be using v4.6 libraries, because of a type load exception when trying to initialize the IOrderStore API. An internal team also ran into this issue (on version 4.5.5) yesterday, and through that, we were able to get to the inner Exceptions, which gave us more information about why the type was not loading.

The Select NuGet package (probably SoftPro.Select.Core…pending investigation) is missing the IronPython assembly reference. To get around this issue, go into your Visual Studio project and right-click the References, select "Manage NuGet packages..." and select the Browse option. Make sure the Package source is "nuget.org".
NuGet.png
NuGet.png (126.58 KiB) Viewed 1758 times
Search for the IronPython (v2.7.3) package and install it in your project. This should furnish the missing reference.
Bob Richards, Senior Software Developer, SoftPro
Post Reply