首页 > 其他 > 详细

"System.Security.Cryptography.CryptographicException: 拒绝访问" 问题的解决方法

时间:2015-09-10 17:22:24      阅读:1659      评论:0      收藏:0      [点我收藏+]

.net web程序使用rsa算法进行加解密时,程序报告“System.Security.Cryptography.CryptographicException: 拒绝访问”错。按网上搜的解决方法做了各种权限配置,然并卵。试了两天终于解决,现记录如下:

C:\Documents and Settings\All Users\Application Data
添加项目应用程序池对应启动帐号(或iis_wpg组) 读取,读取并运行,列出文件夹目录权限。
C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
添加项目应用程序池对应启动帐号(或iis_wpg组)除完全控制和特殊权限以外的所有权限。 
 
 
 
 
后记:
C:\Documents and Settings\All Users\Application Data这个目录下的权限分配还是有些讲究的,对于安全要求高的生产环境服务器,在配置时要格外注意。

"System.Security.Cryptography.CryptographicException: 拒绝访问" 问题的解决方法

原文:http://www.cnblogs.com/lykyl/p/4798473.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!