Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VerificationException in TransientLifetimeManager on Azure DevOps #355

Open
dbman86 opened this issue Oct 29, 2021 · 1 comment
Open

VerificationException in TransientLifetimeManager on Azure DevOps #355

dbman86 opened this issue Oct 29, 2021 · 1 comment

Comments

@dbman86
Copy link

dbman86 commented Oct 29, 2021

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

@ENikS
Copy link
Contributor

ENikS commented Oct 31, 2021

Unity development and support is on pause at the moment
unitycontainer/unity#368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants