Setup output folder

Print Friendly, PDF & Email

◷ Reading Time: 2 minutes

Issue

If

  • you don’t set up your Visual studio project properly, or
  • some assemblies are missing from the executing folder from which you run rules

…you may receive the following exception error:

The type initializer for 'Q' threw an exception.

This means that not all the Framework assemblies are copied across to your output build folder.

Solution

There are two ways doing the setup:

  1. Manual setup
  2. Change output folder

Manual setup

Every time you run your project, make sure all the assemblies are available in the output folder. Visual Studio removes and cleans the output folder when it feels like it.

Change output folder

The way to do this is:

  1. Make a folder (named “Output”)
  2. copy all FlexRule assemblies from the [installedPath]\Framework folder to Output (where you created in the previous step).
  3. copy your license file to that folder (Output)
  4. Set your project output to that folder, similar to the picture below:
Updated on July 22, 2019

Was this article helpful?

Related Articles