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
  1. Home
  2. General Programming
  3. XML / XSL
  4. XML in app.config file in VB 2005

XML in app.config file in VB 2005

Scheduled Pinned Locked Moved XML / XSL
csharpxmljsonhelpquestion
2 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.
  • S Offline
    S Offline
    steve_rm
    wrote on last edited by
    #1

    Hello, I am developing a VB .Net 2005 project. I have a problem, i have a app.config file which I have entered connection strings and other setting from the project properties tab. This has automatically generated the app.config file for me. I have edited the app.config myself and entered a new section which I did manually. However, now that I have done this the existing code in the app.config doesn't work. Summary: If I add my own manually entered config sections with what has been automatically generated. But parts don't work. If I just add my own manually entered and commit out the rest my own manually works fine. It doesn't work with both. I was thinking of adding a new app.config file, which has the default name of app1.config. But I am sure how I would reference each one when the program runs. The config file is below, my manual section is the appUpdater, at the bottom. Is there a way that I can include my own manual entered sections?

    G 1 Reply Last reply
    0
    • S steve_rm

      Hello, I am developing a VB .Net 2005 project. I have a problem, i have a app.config file which I have entered connection strings and other setting from the project properties tab. This has automatically generated the app.config file for me. I have edited the app.config myself and entered a new section which I did manually. However, now that I have done this the existing code in the app.config doesn't work. Summary: If I add my own manually entered config sections with what has been automatically generated. But parts don't work. If I just add my own manually entered and commit out the rest my own manually works fine. It doesn't work with both. I was thinking of adding a new app.config file, which has the default name of app1.config. But I am sure how I would reference each one when the program runs. The config file is below, my manual section is the appUpdater, at the bottom. Is there a way that I can include my own manual entered sections?

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      The app.config file structure is enforced by a schema. If you violate this schema, the configuraton file is invalid and it won't load. I hope this helps: http://msdn2.microsoft.com/en-us/library/ms254494(VS.80).aspx[^]

      "We make a living by what we get, we make a life by what we give." --Winston Churchill

      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