Skip to content

Instantly share code, notes, and snippets.

@AhmedKamal
Created July 3, 2014 04:42
Show Gist options
  • Save AhmedKamal/f9a3d8f7e3643b54bac6 to your computer and use it in GitHub Desktop.
Save AhmedKamal/f9a3d8f7e3643b54bac6 to your computer and use it in GitHub Desktop.
Exception in Cold Turkey
System.Security.Cryptography.CryptographicException: The keyset is not defined.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv)
at System.Security.Cryptography.CryptoAPITransform..ctor(Int32 algid, Int32 cArgs, Int32[] rgArgIds, Object[] rgArgValues, Byte[] rgbKey, PaddingMode padding, CipherMode cipherChainingMode, Int32 blockSize, Int32 feedbackSize, Boolean useSalt, CryptoAPITransformMode encDecMode)
at System.Security.Cryptography.DESCryptoServiceProvider._NewEncryptor(Byte[] rgbKey, CipherMode mode, Byte[] rgbIV, Int32 feedbackSize, CryptoAPITransformMode encryptMode)
at System.Security.Cryptography.DESCryptoServiceProvider.CreateEncryptor(Byte[] rgbKey, Byte[] rgbIV)
at CTService.Crypto3DES.Encrypt3DES(String strString)
at CTService.Service1.resetConfigFile()System.Security.Cryptography.CryptographicException: The keyset is not defined.
at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv)
at System.Security.Cryptography.CryptoAPITransform..ctor(Int32 algid, Int32 cArgs, Int32[] rgArgIds, Object[] rgArgValues, Byte[] rgbKey, PaddingMode padding, CipherMode cipherChainingMode, Int32 blockSize, Int32 feedbackSize, Boolean useSalt, CryptoAPITransformMode encDecMode)
at System.Security.Cryptography.DESCryptoServiceProvider._NewEncryptor(Byte[] rgbKey, CipherMode mode, Byte[] rgbIV, Int32 feedbackSize, CryptoAPITransformMode encryptMode)
at System.Security.Cryptography.DESCryptoServiceProvider.CreateEncryptor(Byte[] rgbKey, Byte[] rgbIV)
at CTService.Crypto3DES.Encrypt3DES(String strString)
at CTService.Service1.resetConfigFile()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment