Skip to content

RDLC RunTime Bug - "Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete" - Microsoft.ReportingServices.RdlObjectModel.ExpressionParser.VBFunctions #7420

@pri-kise

Description

@pri-kise

1. Describe the bug
When I copy tablix with some expressions in RDLC, then they get the full assembly path added in front of the function name

2. To Reproduce
Steps to reproduce the behavior:

  1. Copy the Vat Clause Tablix of the Sales Invoice Header
    The expression
<FilterExpression>=Cstr(Len(Fields!Code_VATClauseLine.Value))</FilterExpression>

is converted to

<FilterExpression>=Microsoft.ReportingServices.RdlObjectModel.ExpressionParser.VBFunctions.Cstr(Len(Fields!Code_VATClauseLine.Value))</FilterExpression>

3. Expected behavior
It shouldn't be a problem if the full path is used or at least we should get some better error.

4. Actual behavior
Currently the following error is displayed

image

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.'.’.
5. Versions:

  • Business Central: Latest BC Version (BC 22.1=
  • List of Visual Studio Code extensions that you have installed:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions