|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
2003 to 2005 conversion problemIn 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 Show quoteHide quote "Bob" <bduf***@sgiims.com> wrote in message news:uau2CyEcGHA.3952@TK2MSFTNGP04.phx.gbl... > 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 > > > > > > > > Thanks Claes
Show quoteHide quote "Claes Bergefall" <louplou@nospam.nospam> wrote in message news:%23QTcaKFcGHA.3712@TK2MSFTNGP03.phx.gbl... > 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 > > "Bob" <bduf***@sgiims.com> wrote in message > news:uau2CyEcGHA.3952@TK2MSFTNGP04.phx.gbl... >> 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 >> >> >> >> >> >> >> >> > >
ReadXML after File Copy
Sql Code generation tools Simple questions about interfaces WebBrowser WindowClosing Internationalisation Project VB.net 2005 RESX Recursive WebRequest.Create() Call Lisp Program from vb.net File Names: List Long file Names from Database List of short file names help logging events to txt file System.Uri.UserEscaped |
|||||||||||||||||||||||