IAoInitialize Shutdown failure on x64 after last Windows Update

Discussion created by alexmarkolov on Jan 18, 2018
Latest reply on Jan 19, 2018 by George_Thompson-esristaff

Hello everybody,
After recent Windows Update the code was working years fails with low level Access Violation exception.
I'm on ArcGIS Server 10.4.1.
Below is the test code:


ESRI.ArcGIS.ProductCode productCode = ESRI.ArcGIS.ProductCode.Server;
esriLicenseProductCode licenceProductCode = esriLicenseProductCode.esriLicenseProductCodeArcServer;

bool success = ESRI.ArcGIS.RuntimeManager.Bind(productCode);
if (!success) throw new Exception("Failed to bind license.");

AoInitializeClass _AoInitialize = new AoInitializeClass();
esriLicenseStatus LicenseStatus = _AoInitialize.Initialize(licenceProductCode);



Shutdown failed


Problem Event Name: BEX64
Application Name: LicenseCheck.exe
Application Version:
Application Timestamp: 5a6084f8
Fault Module Name: StackHash_2264
Fault Module Version:
Fault Module Timestamp: 00000000
Exception Offset: 000007fe7db1124b
Exception Code: c0000005
Exception Data: 0000000000000008
OS Version: 6.1.7601.
Locale ID: 1037
Additional Information 1: 2264
Additional Information 2: 2264db07e74365624c50317d7b856ae9
Additional Information 3: 875f
Additional Information 4: 875fa2ef9d2bdca96466e8af55d1ae6e