IX509Enrollment::Enroll may encounter an access violation if the application cannot bind to the Key Isolation Storage service. The following stack causes the exception:
ncrypt!UnloadProvider
ncrypt!NCryptOpenStorageProvider+0xdd
certenroll!myNCOpenStorageProvider+0x41
certenroll!CertEnroll::CCspInformation::p_NCInitialize+0x4c
certenroll!CertEnroll::CCspInformation::p_Initialize+0x14
certenroll!CertEnroll::CCspInformation::InitializeFromName+0x7f
certenroll!CertEnroll::CCspInformations::p_AddCNGCsps+0x12f
certenroll!CertEnroll::CCspInformations::AddAvailableCsps+0x48
certenroll!CertEnroll::CX509EnrollmentManager::p_ExamX509Enrollments+0x3e8
certenroll!CertEnroll::CX509EnrollmentManager::p_ProcessX509Enrollments+0xa9
certenroll!CertEnroll::CX509EnrollmentManager::_EnrollThreadProc+0x3eb
certenroll!CertEnroll::CX509EnrollmentManager::_Enroll+0x115
certenroll!CertEnroll::CX509Enrollment::_EnrollWizard+0xca
certenroll!CertEnroll::CX509Enrollment::Enroll
ncrypt!UnloadProvider
ncrypt!NCryptOpenStorageProvider+0xdd
certenroll!myNCOpenStorageProvider+0x41
certenroll!CertEnroll::CCspInformation::p_NCInitialize+0x4c
certenroll!CertEnroll::CCspInformation::p_Initialize+0x14
certenroll!CertEnroll::CCspInformation::InitializeFromName+0x7f
certenroll!CertEnroll::CCspInformations::p_AddCNGCsps+0x12f
certenroll!CertEnroll::CCspInformations::AddAvailableCsps+0x48
certenroll!CertEnroll::CX509EnrollmentManager::p_ExamX509Enrollments+0x3e8
certenroll!CertEnroll::CX509EnrollmentManager::p_ProcessX509Enrollments+0xa9
certenroll!CertEnroll::CX509EnrollmentManager::_EnrollThreadProc+0x3eb
certenroll!CertEnroll::CX509EnrollmentManager::_Enroll+0x115
certenroll!CertEnroll::CX509Enrollment::_EnrollWizard+0xca
certenroll!CertEnroll::CX509Enrollment::Enroll