Skip to content

Native compiler return value: ‘[BC30560] 'GeneratedCodeAttribute' is ambiguous in the namespace 'System.CodeDom.Compiler'. #22

@AmirImam

Description

@AmirImam

Hi
RDLC report on .Net 5 API project throws this error when I use parameters in Execute function
Native compiler return value: ‘[BC30560] 'GeneratedCodeAttribute' is ambiguous in the namespace 'System.CodeDom.Compiler'.
It works fine if I didn't send any parameters

  • .Net 5
  • AspNetCore.Reporting 2.1.0
  • System.CodeDom 5.0.0

Edit 1:
It works fine with parameters on local but throws this error after publishing on IIS as (self-contained/ win-x86) or (Framework-dependent/Portable)

Edit 2:
I realized that the error appears when I drag a parameter into the report itself, even if I sent parameters with Execute function. So I can send any parameters and add parameters to the report but not dragging them into it.

Edit 3
Parameters and anything that contains a date or time are causing a crash

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions