473,385 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ConfigurationManager doesn't exist

Hi,

I have converted a project from VS2003 to VS2005, and I have an error
which I can't seem to solve.

I was using Configuration.AppSettings to read values from the
application configuration file, but got a warning that this has now been
replaced by the ConfigurationManager class.

I have tried to implement the ConfigurationManager class, but I am
getting an error that it does not exist in namespace System.Configuration.

Everything I can find on MSDN tells me it does exist, yet the compiler
generates an error.
Can anybody shed any light on this?
I am using VS2005 Professional.
Thanks.

Paul Cheetham
May 13 '06 #1
2 3872
"Paul Cheetham" <PA******@dsl.pipex.com> wrote in message
news:OH**************@TK2MSFTNGP02.phx.gbl...
Hi,

I have converted a project from VS2003 to VS2005, and I have an error
which I can't seem to solve.

I was using Configuration.AppSettings to read values from the application
configuration file, but got a warning that this has now been replaced by
the ConfigurationManager class.

I have tried to implement the ConfigurationManager class, but I am getting
an error that it does not exist in namespace System.Configuration.

Everything I can find on MSDN tells me it does exist, yet the compiler
generates an error.
Can anybody shed any light on this?
I am using VS2005 Professional.
Thanks.

Paul Cheetham


Make sure your project has a reference to System.Configuration.dll
May 13 '06 #2
>
Make sure your project has a reference to System.Configuration.dll


Thanks.

So obvious it never even occurred to me!
Paul
May 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michael Debus | last post by:
Hi, I try to read a value from app.config file using this code: string s=System.Configuration.ConfigurationManager.AppSettings.ToString(); I got the compiler error: Error 1 The type or...
0
by: Mark Ingram | last post by:
Hi all, having a real struggle using the ConfigurationManager class, i want to be able to save user specific information to the configuration file, i try to use: Configuration config =...
1
by: shapper | last post by:
Hello, I create a few VB classes under app_code of a web site. Now I am trying to create a library project. Something strange is going on. I have the following line: Dim connectionString As...
3
by: Mark | last post by:
I am trying to read the appsettings section of a configuration file using the ConfigurationManager object (ASP.NET application) with the following three lines but for some reason the...
4
by: Jim in Arizona | last post by:
I've been using VB 2005 for a few years now. My entire coding history is VB related. This weekend I decided to start learning C#. I'm at work now and decided to do some coding in C# that I would...
2
by: Charlie | last post by:
Hi: Program runs and compiles fine, but WinForms designer breaks when using this line of code... ConfigurationManager.ConnectionStrings.ToString(); It says "Object reference not set to an...
0
by: Jeremy Noring | last post by:
Hi, I have an application that loads various settings from the app.exe.config file. This has worked very well on w2k, XP, and Vista. However, recently I've been troubleshooting an issue on...
2
by: pantagruel | last post by:
Hi, I have a Visual studio 2005 project that runs as a Windows Service. In it I have declared that I am using System.Configuration. I have set one application setting for the service using the...
0
by: Tom | last post by:
This seems odd ... While debugging my application in VS2008, I can successfully retrieve values from my configuration file doing the following: string bla = ConfigurationManager.AppSettings; ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.