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. .NET (Core and Framework)
  4. Change custom settings inn app.config (vb.net)

Change custom settings inn app.config (vb.net)

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpxmlquestionannouncement
4 Posts 4 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.
  • M Offline
    M Offline
    Member 9955432
    wrote on last edited by
    #1

    This is my app.config:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <configSections>
    <section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/>
    </configSections>
    <couchbase>
    <servers bucket="testbucket" bucketPassword="">
    <add uri="http://localhost:8091/pools"/>
    </servers>
    </couchbase>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>

    </configuration>

    I want to change the "ADD URI" field + bucket and password by code, but have serious trouble finding a working solution. :)

    D L A 3 Replies Last reply
    0
    • M Member 9955432

      This is my app.config:

      <?xml version="1.0" encoding="utf-8" ?>
      <configuration>
      <configSections>
      <section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/>
      </configSections>
      <couchbase>
      <servers bucket="testbucket" bucketPassword="">
      <add uri="http://localhost:8091/pools"/>
      </servers>
      </couchbase>
      <startup>
      <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
      </startup>

      </configuration>

      I want to change the "ADD URI" field + bucket and password by code, but have serious trouble finding a working solution. :)

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It's just an XML file. There's tons of examples all over the web on how to manipulate them.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      1 Reply Last reply
      0
      • M Member 9955432

        This is my app.config:

        <?xml version="1.0" encoding="utf-8" ?>
        <configuration>
        <configSections>
        <section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/>
        </configSections>
        <couchbase>
        <servers bucket="testbucket" bucketPassword="">
        <add uri="http://localhost:8091/pools"/>
        </servers>
        </couchbase>
        <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
        </startup>

        </configuration>

        I want to change the "ADD URI" field + bucket and password by code, but have serious trouble finding a working solution. :)

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        See Saving Connection Strings to app.config[^].

        Use the best guess

        1 Reply Last reply
        0
        • M Member 9955432

          This is my app.config:

          <?xml version="1.0" encoding="utf-8" ?>
          <configuration>
          <configSections>
          <section name="couchbase" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase"/>
          </configSections>
          <couchbase>
          <servers bucket="testbucket" bucketPassword="">
          <add uri="http://localhost:8091/pools"/>
          </servers>
          </couchbase>
          <startup>
          <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
          </startup>

          </configuration>

          I want to change the "ADD URI" field + bucket and password by code, but have serious trouble finding a working solution. :)

          A Offline
          A Offline
          Anna King
          wrote on last edited by
          #4

          For what purpose do you need to change the “ADD URI” + bucket and password within the app.config file ? Is it really necessary ?

          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