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
Right-click on references tab to add reference.
Click on Assemblies tab
Search for 'System.Configuration'
Click OK.
Best Regards,
Brando
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
504 Points
1776 Posts
Error - The name ConfigurationManager does not exist in the currentcontext
Jun 11, 2018 09:29 AM|JagjitSingh|LINK
Hi
I am getting above error on below line. I have included below file also - using System.Configuration;
string myConnString = ConfigurationManager.ConnectionStrings["cnnString"].ConnectionString;
Thanks
Star
9831 Points
3120 Posts
Re: Error - The name ConfigurationManager does not exist in the currentcontext
Jun 12, 2018 05:25 AM|Brando ZWZ|LINK
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
Best Regards,
Brando