chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
On version 7.3, we are now getting "System.Security.VerificationException: Operation could destabilize the runtime" when running what seem like simple tests. The errors only occur when running on the build server though, when run on the client the tests run fine.

Example stack trace:
System.Runtime.Serialization.DataContractAttribute..ctor()
System.RuntimeTypeHandle.CreateCaInstance(RuntimeType type, IRuntimeMethodInfo ctor)
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean isDecoratedTargetSecurityTransparent)
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
System.RuntimeType.GetCustomAttributes(Boolean inherit)
System.Xml.Serialization.XmlAttributes..ctor(ICustomAttributeProvider provider)
System.Xml.Serialization.XmlReflectionImporter.GetAttributes(Type type, Boolean canBeSimpleType)
System.Xml.Serialization.XmlReflectionImporter.ImportElement(TypeModel model, XmlRootAttribute root, String defaultNamespace, RecursionLimiter limiter)
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type type, XmlRootAttribute root, String defaultNamespace)
System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
System.Xml.Serialization.XmlSerializer..ctor(Type type)
HoraceMann.Auto.Services.Classing.Tests.Unit.Data.XMLDataLoaders.LoadClientInformationListFromXML(String filename) in c:BuildsHM.Marketing.CustomerCareCenterCCC - Main - Gated BuildSourcesSourceHoraceMann.Auto.Services.Classing.Tests.UnitDataXMLDataLoaders.cs: line 20
asked by mark_shiffer (1.7k points)

2 Answers

0 votes
Hi,

What OS is being used on the server?

Can you please try the next version on the server:
https://www.typemock.com/files/patches/T ... .3.6.0.msi
answered by Elisha (12k points)
0 votes
We're on 2008 R2. I'll try the new version, might take some time to get that going.
answered by mark_shiffer (1.7k points)
...