This error message can be a little misleading as it implies that it is related to some security permissions not being configured correctly. In some cases this can be the case, however it can also be a problem with running CIL code. This can especially occur when you are going through the code upgrade steps.
There are a couple of solutions for this.
- Try to complete a full CIL compile with errors.
- If the full CIL fails or has errors, then uncheck the “Execute business operations in CIL”, under File > Tools > Options – in the Development tab, as below: