بعد از انتقال از یک سرور به سرور دیگر ، خطایی در زمان نمایش کپچا ایجاد میشود :
System.Security.Cryptography.CryptographicException: Object already exists at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.Utils._CreateCSP(CspParameters param, Boolean randomKeyContainer, SafeProvHandle& hProv)
متن کامل خطا :
captcha-error.txt
تنها با دادن دسترسی کامل به Everyone برای مسیر زیر مشکل برطرف شد:
C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys
در حالی که نه در سیستم لوکال و نه در سرور قبلی این مشکل وجود نداشت. سرور جدید 2012 هست.
استفاده از Full Trust و یا دستور زیر هم کارساز نشد :
aspnet_regiis -pa "SampleKeys" "NT AUTHORITY\NETWORK SERVICE"