Error - The name ConfigurationManager does not exist in the currentcontext RRS feed

  • Question

  • User-1499457942 posted


      I am getting above error on below line. I have included below file also - using System.Configuration;

    string myConnString = ConfigurationManager.ConnectionStrings["cnnString"].ConnectionString;


    Monday, June 11, 2018 9:29 AM


  • User283571144 posted

    Hi JagjitSingh,

    According to your description, I suggest you could firstly open the references tag in your project and make sure you have already added the System.Configuration reference.

    Like below:

    If you don't find this reference, I suggest you couold follow below steps to add the reference.

    Notice: Make sure your .net farmework version larger than 2.0

    1. Right-click on references tab to add reference.
    2. Click on Assemblies tab
    3. Search for 'System.Configuration'
    4. Click OK.

    Best Regards,


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 12, 2018 5:25 AM