Beid:C#CryptoAcquireFailed错误= 80090019 [英] Beid : C# CryptoAcquireFailed Error=80090019

查看:184
本文介绍了Beid:C#CryptoAcquireFailed错误= 80090019的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是比利时的身份证签一些东西。 CryptoAcquireFailed:在SDK中的例子 sign_csp 这个错误而失败。错误= 80090019

I'm using Belgian ID card to sign some stuff. The example sign_csp in the SDK failed with this error : CryptoAcquireFailed. Error=80090019.

//Get a context
if (!CryptAcquireContext(out hprov, container, provider, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT))
{
   MessageBox.Show("CryptAcquireContext failed.\n\n(Error=" + Marshal.GetLastWin32Error().ToString("x") + ")"); 
   return;
}



提供商=比利时身份证CSP

provider = "Belgium Identity Card CSP"

我在Windows 7 64位。该计划是专为86。

I'm on Windows 7 64 bit. The program is built for x86.

谢谢!

推荐答案

有?你正确安装了CSP

Have you installed the CSP correctly?

确认您拥有在以下注册表项:

Verify that you have the following key in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Belgium Identity Card CSP

和该图像路径项包含正确的路径CSP-DLL。

and that the Image Path entry contains the correct path to the CSP-dll.

这篇关于Beid:C#CryptoAcquireFailed错误= 80090019的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆