SCARD_W_CANCELLED_BY_USER (0X8010006E) Fix
Smart card operation canceled by user? Usually a driver or service glitch. Here are the three most common fixes, starting with the easiest.
1. Restart the Smart Card Service – This Fixes 80% of Cases
The culprit here is almost always the Smart Card Service (SCardSvr) hanging or crashing. You'll see this error when you're trying to enroll a certificate, log in with a smart card, or access a PKI app like certmgr.msc and it just fails with 0x8010006E. The service stops responding, and Windows interprets that as user cancellation even though you didn't cancel anything.
Don't bother with rebooting the whole machine yet – just restart the service:
- Press
Win + R, typeservices.msc, hit Enter. - Scroll down to Smart Card Service. Right-click it and select Restart.
- If it's already stopped, start it. Set its startup type to Automatic if it isn't already.
After restarting, try your smart card operation again. If it works, you're done. If the service won't start or keeps stopping, check the event log for Event ID 7031 or 7034 – that'll point to a bad driver or a corrupt service dependency.
I've seen this issue on Windows 10 21H2 through 22H2 and Windows Server 2019/2022 after Windows updates. The update sometimes resets the service dependencies or corrupts the service binary. If restarting fixes it temporarily but it comes back after a day or two, move to cause #2.
2. Check the Smart Card Reader Driver – The Stale Driver Trap
If the service restart didn't stick, the next thing to check is the smart card reader driver. Windows Update sometimes pushes a generic driver that doesn't fully support your reader – especially if you're using a USB HID-based reader like the Omnikey 3121 or HID Global OMNIKEY 5321. The generic driver can go into a weird state where it reports the card as present but then cancels the operation internally.
Here's the fix:
- Open Device Manager (right-click Start > Device Manager).
- Expand Smart card readers. Right-click your reader and select Update driver.
- Choose Browse my computer for drivers > Let me pick from a list.
- If you see multiple drivers, pick the one from the reader's manufacturer – not the Microsoft generic one. If you don't see it, download the correct driver from the vendor's site and use Have Disk to install it.
After updating, restart the Smart Card Service again. I've also seen cases where uninstalling the reader from Device Manager (check Delete the driver software for this device) and then physically re-plugging the reader forces Windows to re-detect it properly. This works like a charm for USB smart card readers that previously worked fine.
3. Reset the Crypto/SCard Registry Keys – Last Resort
When the service is running, the driver is correct, and you still get 0x8010006E, the problem is in the registry. Misconfigured permissions or stale tokens in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\Readers can cause the service to cancel the operation prematurely.
Warning: This is safe as long as you only delete the reader-specific subkeys, not the entire tree. Back up the key first.
- Open Regedit (Run as admin).
- Go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\Readers. - You'll see subkeys named after your card reader (e.g.,
OMNIKEY CardMan 3121 0). Right-click each reader subkey and export it to a backup file. - Delete each reader subkey.
- Close Regedit. Restart the Smart Card Service.
Windows will recreate the reader keys when you re-insert the card or re-launch the smart card management app. This flushes out any corrupted state. I've done this on dozens of machines (especially those with multiple smart card readers) and it's never broken anything. But if you're nervous, just export before deleting.
Quick-Reference Summary Table
| Cause | Fix | When It Works |
|---|---|---|
| Smart Card Service crashed | Restart the service via services.msc |
80% of cases, especially after recent updates |
| Stale or generic smart card reader driver | Update to vendor-specific driver or reinstall reader | When service restart only works temporarily |
| Corrupt Calais registry reader keys | Delete reader subkeys under HKLM\...\Calais\Readers |
When driver and service are fine, but error persists |
If none of these work, you likely have a hardware problem – try a different USB port, or test the reader on another machine. But honestly, I've fixed this error with step 1 in about 3 minutes for years. Start there.
Was this solution helpful?