473,326 Members | 2,655 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,326 software developers and data experts.

ConfigurationManager

I'm using Visual C# 2005 Express Edition. I wanted to read configuration from
app.config file. In 1.1, I used ConfigurationSettings, but in 2.0 I should
use ConfigurationManager because ConfigurationSettings has been deprecated.
The problem is that I can't fine ConfigurationManager from
System.Configuration package. The compiler keep throwing error for not
finding the class, but no one have similar problems in the internet. Is there
anything else that I need to do?

Regards,
Budhi
Oct 17 '06 #1
2 1410
Have u add "using System.Configuration" ?

--
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


"Budhi Saputra Prasetya" wrote:
I'm using Visual C# 2005 Express Edition. I wanted to read configuration from
app.config file. In 1.1, I used ConfigurationSettings, but in 2.0 I should
use ConfigurationManager because ConfigurationSettings has been deprecated.
The problem is that I can't fine ConfigurationManager from
System.Configuration package. The compiler keep throwing error for not
finding the class, but no one have similar problems in the internet. Is there
anything else that I need to do?

Regards,
Budhi
Oct 17 '06 #2
I have, otherwise I won't be able to get ConfigurationSettings too, because
both classes are in the same package.

Regards,
Budhi

"Michael Nemtsev" wrote:
Have u add "using System.Configuration" ?

--
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche


"Budhi Saputra Prasetya" wrote:
I'm using Visual C# 2005 Express Edition. I wanted to read configuration from
app.config file. In 1.1, I used ConfigurationSettings, but in 2.0 I should
use ConfigurationManager because ConfigurationSettings has been deprecated.
The problem is that I can't fine ConfigurationManager from
System.Configuration package. The compiler keep throwing error for not
finding the class, but no one have similar problems in the internet. Is there
anything else that I need to do?

Regards,
Budhi
Oct 17 '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...
2
by: Myo Zaw | last post by:
hi, can i use configurationmanager in .net 2.0 windows form. cause i have an app.config file and i couldn't extract the data from there by using configurationmanager nor 1.1 feature. do u have any...
2
by: robertino | last post by:
Hi All, (VS 2005 Pro, Win XP Pro) I'm trying to read some app settings from my app.config file (normal Win app), have included the System.Configuration namespace in my app, but when I try to...
3
by: natasha | last post by:
Hello everybody, you can use ConfigurationManager.AppSettings.Set method (ConfigurationManager is in System.Web.Configuration namespace) to store a modified value from web.config. To be...
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: remya1000 | last post by:
i'm using VB.NET 2003. Last time while i did a program in Vb.Net 2005, i use "Configuration". and i could read and write to that XML configuration file like the example below. CODES:...
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...
3
by: Jeff | last post by:
I have a solution with two projects. Project A is the startup project, while Project B serves as the project with the data logic. At run time, the first thing I need to do is write to Project...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.