Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Read form exe.config file

Read form exe.config file

Scheduled Pinned Locked Moved C#
sysadminxmltutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nahumtakum
    wrote on last edited by
    #1

    Hi there ! I want to create a configurtion file, something like ProjectName.exe.config file, which will include XML elemnts that don't have "key" and "value". For example: <server id='BR.1.ET' address='127.0.0.1' dbg='true' maxClients='4' description='Server details'> I want to read without going through all the nodes and attributes. Is there something similar to this method: String dsn = ConfigurationSettings.AppSettings["pubs"]; ? Bye

    N 1 Reply Last reply
    0
    • N nahumtakum

      Hi there ! I want to create a configurtion file, something like ProjectName.exe.config file, which will include XML elemnts that don't have "key" and "value". For example: <server id='BR.1.ET' address='127.0.0.1' dbg='true' maxClients='4' description='Server details'> I want to read without going through all the nodes and attributes. Is there something similar to this method: String dsn = ConfigurationSettings.AppSettings["pubs"]; ? Bye

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      nahumtakum wrote: I want to read without going through all the nodes and attributes. Is there something similar to this method: Well, you are going to have to write your own implementation of IConfigurationSectionHandler. Take a look at my article : An extension for a Configuration Settings class in .NET[^] -Nick Parker

      N 1 Reply Last reply
      0
      • N Nick Parker

        nahumtakum wrote: I want to read without going through all the nodes and attributes. Is there something similar to this method: Well, you are going to have to write your own implementation of IConfigurationSectionHandler. Take a look at my article : An extension for a Configuration Settings class in .NET[^] -Nick Parker

        N Offline
        N Offline
        nahumtakum
        wrote on last edited by
        #3

        Hi Nick ! Can you please supply me the Test.exe.config file you are working with in your article ? Thanks.

        N 1 Reply Last reply
        0
        • N nahumtakum

          Hi Nick ! Can you please supply me the Test.exe.config file you are working with in your article ? Thanks.

          N Offline
          N Offline
          Nick Parker
          wrote on last edited by
          #4

          nahumtakum wrote: Can you please supply me the Test.exe.config file you are working with in your article ? I will soon be updating the article to identify this item and other issues that should make things more understandable. I need time :mad: which I am lacking at the moment. -Nick Parker

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups