8
as discussed on https://www.yammer.com/dynamicsnavdev/#/Threads/show?threadId=1222998933708800
Various syntax errors in RDL VB expressions can cause this cryptic, baffling, red-herring-chasing-inducing error:
> "Rendering output for the report failed and the following error occurred: An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'’"
It seems like error-trapping when evaluating the report expression at runtime is failing, and returning this seemingly unrelated error instead. So, instead of a useful error, we get this totally misleading one, and waste our time searching about it in our code, when the real problem is elsewhere. Is there anything MS can do to fix?
Various syntax errors in RDL VB expressions can cause this cryptic, baffling, red-herring-chasing-inducing error:
> "Rendering output for the report failed and the following error occurred: An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'’"
It seems like error-trapping when evaluating the report expression at runtime is failing, and returning this seemingly unrelated error instead. So, instead of a useful error, we get this totally misleading one, and waste our time searching about it in our code, when the real problem is elsewhere. Is there anything MS can do to fix?
STATUS DETAILS
Completed

Business Central Team (administrator)
This bug has now been fixed and will be backported to version 18.x, where it will be available in the next upcoming cummulative update.
Yours sincerely,
Kennie Nybo Pontoppidan (Program Manager for the Business Central Server)