1
Answer

ConfigurationManager problem

Steve Geard

Steve Geard

14y
3.1k
1

I am using VS 2008 and C#.NET, I have the connectionstring for an SQL Server database stored in app.config, I believe I should be able to access it using ConfigurationManager, as follws:
using System;
using System.Configuration;
...
string ConnectionString = ConfiurationManager.ConnectionStrings("ConnectionStringName").ToString();
However, I getting build errors telling me that the name ConfigurationManager does not exist in the current context.
What am I doing wrong?
 
Answers (1)