Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When you set the URL Behavior to <em>Dynamic</em>, the framework does everything for you:</p> <ul> <li>Adds a key to the <code>web.config</code> file (look for <code>CoreBusiness_UbossProvisioning_ProvisioningServices</code>)</li> <li>Generate <code>Reference.cs</code> so it would read the settings from the configuration.</li> </ul> <p>If you added the reference to another assembly, copy the following sections from its <code>app.config</code> to your <code>web.config</code> (you may need to correct your namespaces, I'm just guessing yours):</p> <pre><code>&lt;configSections&gt; &lt;sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" &gt; &lt;section name="Drd.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt; &lt;/sectionGroup&gt; &lt;/configSections&gt; </code></pre> <p>And</p> <pre><code>&lt;applicationSettings&gt; &lt;Drd.Properties.Settings&gt; &lt;setting name="CoreBusiness_UbossProvisioning_ProvisioningServices" serializeAs="String"&gt; &lt;value&gt;http://yourservice/address&lt;/value&gt; &lt;/setting&gt; &lt;/Drd.Properties.Settings&gt; &lt;/applicationSettings&gt; </code></pre> <p>(Also, as a general rule, never edit generated files.)</p> <p><strong>Alternative Option</strong></p> <p>If you want to use your <code>UbossBridgeURL</code> in <code>AppSettings</code>, you can create a derived client class and set its URL in the constructor (I'm assuming the generated class is class <code>ProvisioningServices</code>):</p> <pre><code>public class MyProvisioningServices : ProvisioningServices { public MyProvisioningServices() { Url = ConfigurationManager.AppSettings["UbossBridgeURL"]; } } </code></pre> <p>Then use the <code>MyProvisioningServices</code> class instead of <code>ProvisioningServices</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload