ConfigurationSettings problem?

B

Bruce W.1

I started a new web app.. In my Page_Load method I do this:

string strConnTxt = ConfigurationSettings.AppSettings["ConnectString"];

and the compiler gives this error:

The type or namespace name 'ConfigurationSettings' could not be found
(are you missing a using directive or an assembly reference?)

This is a very basic thing but I can't figure out why it is happening.
Does anyone know?

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top