2003 to 2005 conversion problem

  • Thread starter Thread starter Bob
  • Start date Start date
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
 
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
 
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
 
Back
Top