2003 to 2005 conversion problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob

    #1

    2003 to 2005 conversion problem

    In VB.NEt 2003 I had a line
    Dim strTemp As String = ConfigurationSe ttings.AppSetti ngs.Get(key)

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

    System.configur ation.configura tionManager.app setings but writing that in
    does not work Configuration manager is not in the intellicode of
    system.configur ation 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








  • Claes Bergefall

    #2
    Re: 2003 to 2005 conversion problem

    CollectionManag er is in the same namespace but in a different assembly so
    you need to add a reference to System.Configur ation in your project.

    /claes

    "Bob" <bdufour@sgiims .com> wrote in message
    news:uau2CyEcGH A.3952@TK2MSFTN GP04.phx.gbl...[color=blue]
    > In VB.NEt 2003 I had a line
    > Dim strTemp As String = ConfigurationSe ttings.AppSetti ngs.Get(key)
    >
    > Converyting to 2005 Gives a warning that this is obsolete. they say its
    > been replaced with
    >
    > System.configur ation.configura tionManager.app setings but writing that in
    > does not work Configuration manager is not in the intellicode of
    > system.configur ation 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
    >
    >
    >
    >
    >
    >
    >
    >[/color]


    Comment

    • Bob

      #3
      Re: 2003 to 2005 conversion problem

      Thanks Claes
      "Claes Bergefall" <louplou@nospam .nospam> wrote in message
      news:%23QTcaKFc GHA.3712@TK2MSF TNGP03.phx.gbl. ..[color=blue]
      > CollectionManag er is in the same namespace but in a different assembly so
      > you need to add a reference to System.Configur ation in your project.
      >
      > /claes
      >
      > "Bob" <bdufour@sgiims .com> wrote in message
      > news:uau2CyEcGH A.3952@TK2MSFTN GP04.phx.gbl...[color=green]
      >> In VB.NEt 2003 I had a line
      >> Dim strTemp As String = ConfigurationSe ttings.AppSetti ngs.Get(key)
      >>
      >> Converyting to 2005 Gives a warning that this is obsolete. they say its
      >> been replaced with
      >>
      >> System.configur ation.configura tionManager.app setings but writing that in
      >> does not work Configuration manager is not in the intellicode of
      >> system.configur ation 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
      >>
      >>
      >>
      >>
      >>
      >>
      >>
      >>[/color]
      >
      >[/color]


      Comment

      Working...