473,388 Members | 1,327 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,388 software developers and data experts.

ConfigurationManager Class Unavailable in Class Libraries

In the previous version of the .net framework,
system.configuration.configuration manager was available for use in Class
Libraries. I'm now working with VS2005/framework 2.0 and it appears that
this is not an option. Why is this class unavailable now in Class Libraries?

I need it to reference a machine.config key on my webserver.

Thanks.
Oct 4 '06 #1
2 4218
It just isn't referenced by default.

Right click references, .NET assemblies and add System.Configuration.dll

Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Mike" <Mi**@discussions.microsoft.comwrote in message
news:34**********************************@microsof t.com...
In the previous version of the .net framework,
system.configuration.configuration manager was available for use in Class
Libraries. I'm now working with VS2005/framework 2.0 and it appears that
this is not an option. Why is this class unavailable now in Class
Libraries?

I need it to reference a machine.config key on my webserver.

Thanks.

Oct 4 '06 #2
Now why didn't I realize that? Thanks for your help!

"Karl Seguin [MVP]" wrote:
It just isn't referenced by default.

Right click references, .NET assemblies and add System.Configuration.dll

Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"Mike" <Mi**@discussions.microsoft.comwrote in message
news:34**********************************@microsof t.com...
In the previous version of the .net framework,
system.configuration.configuration manager was available for use in Class
Libraries. I'm now working with VS2005/framework 2.0 and it appears that
this is not an option. Why is this class unavailable now in Class
Libraries?

I need it to reference a machine.config key on my webserver.

Thanks.


Oct 4 '06 #3

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

Similar topics

1
by: Xtreeme-G | last post by:
I am seeing something weird in my c# winforms application. I cannot instantiate a ConfigurationManager object from the class. I have added System.Configuration in the uses section. I then try to...
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...
1
by: Ben Fidge | last post by:
I recently upgraded a project from VS.NET 2003 to VS 2005 and after compilation I get the following warning: 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is...
4
by: Janiek Buysrogge | last post by:
Hello, Can somebody please tell me how I can read values from the following configuration file. It is generated by VS 2K5 Express when I add settings using the project properties front-end: ...
2
by: Paul Cheetham | last post by:
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...
1
by: sandy.82in | last post by:
Hi I'm new to C# , I'm using VS2005 and .NET2.0 .Here is my issue i just developed a simple application with app.config , and a simple class library and following is my app.configfile <?xml...
2
by: Thomas Bauer | last post by:
Hello, I have a config file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="Directory" value="C:\_Database\" /> <add key="CloseApplication" value="0" />...
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...
3
by: Stefan Hoffmann | last post by:
hi @all, I have a project without a reference to System.Configuration. Why can I use the static class ConfigurationSettings, but not the static class ConfigurationManager? I can use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.