Skip to content

VerificationException in TransientLifetimeManager on Azure DevOps #355

@dbman86

Description

@dbman86

Our continuous integration builds on Azure DevOps just started having this problem. Didn't update any of this code. Happening with Unity.Container.dll version 5.11.11.0 s well as 5.11.8.0 on older projects. Not able to reproduce locally in visual studio. any ideas??

var container = new UnityContainer();
Initialization method Heska.Core.Tests.Domain.ServicesUnitTests.StudyServiceCreateLocalStudyFromServerForTests.ATestInitialize threw exception. System.TypeInitializationException: The type initializer for 'Unity.Lifetime.TransientLifetimeManager' threw an exception. ---> System.Security.VerificationException: Operation could destabilize the runtime..

Stack trace
at Unity.Lifetime.TransientLifetimeManager..cctor() in C:\projects\abstractions\src\Lifetime\Managers\TransientLifetimeManager.cs:line 26

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