2003 to 2005 conversion problem


B

Bob

In VB.NEt 2003 I had a line
Dim strTemp As String = ConfigurationSettings.AppSettings.Get(key)

Converyting to 2005 Gives a warning that this is obsolete. they say its been
replaced with

System.configuration.configurationManager.appsetings but writing that in
does not work Configuration manager is not in the intellicode of
system.configuration so you get anopther err msge <GG>

Can anyone help me with this I'm new to 2005. Where can I get the sample
code to get an appsetting correctly from the config file using 2005?

Thanks for any help

Bob
 
Ad

Advertisements

C

Claes Bergefall

CollectionManager is in the same namespace but in a different assembly so
you need to add a reference to System.Configuration in your project.

/claes
 
Ad

Advertisements

B

Bob

Thanks Claes
Claes Bergefall said:
CollectionManager is in the same namespace but in a different assembly so
you need to add a reference to System.Configuration in your project.

/claes
 

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

Top