System.Security.Cryptography.CryptographicException: 系统找不到指定的文件。
Posted on 2012-06-26 12:08 hyruur 阅读(939) 评论(0) 编辑 收藏 举报将
System.Security.Cryptography.RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
改为
CspParameters RSAParams = new CspParameters();
RSAParams.Flags = CspProviderFlags.UseMachineKeyStore;
System.Security.Cryptography.RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(1024, RSAParams);