Change custom settings inn app.config (vb.net)
-
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. :)
-
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. :)
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 -
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. :)
-
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. :)