Steve Geard

Steve Geard

  • NA
  • 4
  • 0

ConfigurationManager problem

May 16 2010 8:37 PM

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)