Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer issue
-
I have a application that is running live , I want to run the application on my local system so that some changes can be made. I am attempting to use the Enterprise Library Cryptography block to encrypt a credit password in my ASP.NET 3.5 application. Everything is configured correctly,and not getting any error when I build he application but When I call the DecryptSymmetric () method, I get this error: The system configuration source is not defined in the configuration file. [System.Configuration.ConfigurationErrorsException] = {"The system configuration source is not defined in the configuration file."} Stack trace: at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceFactory.Create() at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64) at UserControls_LoginUserControl.SetUserAthent My web.config contains the following (relevant) sections:
pz let me know What is the solution of the above issue. I am searching it on google from last 4-5 hrs but did not get any solution , please let me know if any body have any other finding or anything I have missed .
-
I have a application that is running live , I want to run the application on my local system so that some changes can be made. I am attempting to use the Enterprise Library Cryptography block to encrypt a credit password in my ASP.NET 3.5 application. Everything is configured correctly,and not getting any error when I build he application but When I call the DecryptSymmetric () method, I get this error: The system configuration source is not defined in the configuration file. [System.Configuration.ConfigurationErrorsException] = {"The system configuration source is not defined in the configuration file."} Stack trace: at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceFactory.Create() at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, Byte[] ciphertext) at Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64) at UserControls_LoginUserControl.SetUserAthent My web.config contains the following (relevant) sections:
pz let me know What is the solution of the above issue. I am searching it on google from last 4-5 hrs but did not get any solution , please let me know if any body have any other finding or anything I have missed .
-
Are you sure entlib.config is in the right folder and that it is formatted correctly with all of the required info? The first google hit[^] when searching for your error shows an example with all three files, but you only show two.
I have changed only ProtectionKeyFilename in entlib.config section like this I am not analyzed that what changes i have to do? can u pz tell me what other more chages i will have to make in my application.
modified on Friday, August 27, 2010 1:56 AM