Skip to content

VerificationException: Method System.Security.Policy.Evidence.AddHostEvidence #27

@mreinagithub

Description

@mreinagithub

When trying to use in .net 6.0 get this error when creating Local report at: LocalReport rpt = new LocalReport(path);

Stacktrace:
VerificationException: Method System.Security.Policy.Evidence.AddHostEvidence: type argument 'System.Security.Policy.Zone' violates the constraint of type parameter 'T'.
AspNetCore.Reporting.ControlService.get_InternetZoneEvidence()
AspNetCore.Reporting.ControlService..ctor(ILocalCatalog catalog)
AspNetCore.Reporting.InternalLocalReport..ctor()
AspNetCore.Reporting.LocalReport..ctor(string reportPath)
MarDevsWeb.Gestion.Controllers.AccountController.Imprimir() in AccountController.cs
LocalReport rpt = new LocalReport(path);

Is this package compatible to NET6.0, please let me know?.

Regards!
Pd, if you provide certificate pass i could help to check issue.

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