Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer issue

Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer issue

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netalgorithmsdata-structures
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sudhanshu Mani Tripathi
    wrote on last edited by
    #1

    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 .

    T 1 Reply Last reply
    0
    • S Sudhanshu Mani Tripathi

      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 .

      T Offline
      T Offline
      T M Gray
      wrote on last edited by
      #2

      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.

      S 1 Reply Last reply
      0
      • T T M Gray

        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.

        S Offline
        S Offline
        Sudhanshu Mani Tripathi
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups