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

System.Configuration

Using vs2005, C#

I'm writing some code to settings out of my app.config file. I seemed to be
missing many fields from System.Configuration. For example
System.Configuration.Configuration will not compile. Why am I missing so
many methods from this namespace?

Thanks,
Joe
Sep 5 '06 #1
5 5001

"Joe Reiss" <jo******@bellsouth.netwrote in message
news:Ub******************@bignews1.bellsouth.net.. .
Using vs2005, C#

I'm writing some code to settings out of my app.config file. I seemed to
be missing many fields from System.Configuration. For example
System.Configuration.Configuration will not compile. Why am I missing so
many methods from this namespace?

Thanks,
Joe
Try System.Configuration.ConfigurationSettings.AppSett ings for appSettings
element data retrieval :)

(this is the property of the ConfigurationSettings class in .Net 2003...I'm
unsure if it's changed in 2005.)
HTH,
Mythran
Sep 5 '06 #2
Hey,

If you look at MSDN help on the class you are missing, you can see what
assembly it belongs to. No doubt you are missing a reference to the
correct DLL.
I believe that some of the System.Configuration classes are actually
in:
System.Configuration.DLL
.... which is not always referenced in all project types. Check you have
that reference, and try your intellisense again.

Also, check out ConfigurationManager. Its funky. Lots of examples on
MSDN.

Sep 6 '06 #3
If I want to pull out from <connectionSringshow do i do that? The above
just gives from <appSettings>.

Thanx,Joe

"Mythran" <ki********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>
"Joe Reiss" <jo******@bellsouth.netwrote in message
news:Ub******************@bignews1.bellsouth.net.. .
>Using vs2005, C#

I'm writing some code to settings out of my app.config file. I seemed to
be missing many fields from System.Configuration. For example
System.Configuration.Configuration will not compile. Why am I missing so
many methods from this namespace?

Thanks,
Joe

Try System.Configuration.ConfigurationSettings.AppSett ings for appSettings
element data retrieval :)

(this is the property of the ConfigurationSettings class in .Net
2003...I'm unsure if it's changed in 2005.)
HTH,
Mythran


Sep 7 '06 #4
How do you pull out from <connectStringssection? The above just does
<appSettings>.

thnx,
joe
"Mythran" <ki********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>
"Joe Reiss" <jo******@bellsouth.netwrote in message
news:Ub******************@bignews1.bellsouth.net.. .
>Using vs2005, C#

I'm writing some code to settings out of my app.config file. I seemed to
be missing many fields from System.Configuration. For example
System.Configuration.Configuration will not compile. Why am I missing so
many methods from this namespace?

Thanks,
Joe

Try System.Configuration.ConfigurationSettings.AppSett ings for appSettings
element data retrieval :)

(this is the property of the ConfigurationSettings class in .Net
2003...I'm unsure if it's changed in 2005.)
HTH,
Mythran


Sep 7 '06 #5
Dude, I answered this, read my other post.

Joe Reiss wrote:
How do you pull out from <connectStringssection? The above just does
<appSettings>.

thnx,
joe
"Mythran" <ki********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...

"Joe Reiss" <jo******@bellsouth.netwrote in message
news:Ub******************@bignews1.bellsouth.net.. .
Using vs2005, C#

I'm writing some code to settings out of my app.config file. I seemed to
be missing many fields from System.Configuration. For example
System.Configuration.Configuration will not compile. Why am I missing so
many methods from this namespace?

Thanks,
Joe
Try System.Configuration.ConfigurationSettings.AppSett ings for appSettings
element data retrieval :)

(this is the property of the ConfigurationSettings class in .Net
2003...I'm unsure if it's changed in 2005.)
HTH,
Mythran
Sep 7 '06 #6

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

Similar topics

1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
0
by: phillip | last post by:
This is interesting, I have attached my web.config file and the exception I have been logging. I created a library which provide data access to a database and a control system. The library is...
8
by: A P | last post by:
Hi! I'm using ASP.Net Web Matrix on my PC and wanting to publish the files to our server. I try to copy (thru explorer) the files but it didn't work! I receive Runtime Error: Server Error...
3
by: Juhan | last post by:
Hi! I have a strange error in a console application that is hosted by IIS 5.0 and invokes a web service hosted on the same machine. A request form the web comes in and it is dispatched to a...
3
by: Michael Schwarz | last post by:
Hi, from time to time I get following error message with my ASP.NET 2.0 web application in the event log: An error occurred executing the configuration section handler for system.web/identity. ...
1
by: Sky | last post by:
Yesterday I was told that GetType(string) should not just be with a Type, but be Type, AssemblyName. Fair enough, get the reason. (Finally!). As long as it doesn't cause tech support problems...
2
by: job | last post by:
In a sharepoint setup using smartpart to load our user controls using enterprise blocks (data) we are getting some strange errors (logged to the event log). We dont get the error all the time. When...
8
by: Alberto | last post by:
Can you tell me how to read and modify a value in the app.config file using this class? Thank you very much
3
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type...
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: 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?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.