Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You will still need a <strong>web</strong>.config as there are elements of the configuration that are web specific that won't be in the app.config of your service. As <a href="https://stackoverflow.com/questions/820811/shared-configuration-files-in-net/820827#820827">Marc says</a>, using the ConfigSource attribute will enable you to share common elements.</p> <p>Note that the <a href="http://msdn.microsoft.com/en-us/library/ms228154.aspx" rel="nofollow noreferrer">appSettings</a> element has a slight difference: the File attribute.</p> <blockquote> <p>Specifies a relative path to an external file that contains custom application configuration settings. The specified file contains the same kind of settings that are specified in the appSettings add, clear, and remove attributes and uses the same key/value pair format as those elements. </p> </blockquote> <p>This behaves differently to the ConfigSource attribute, because you don't have to replace the entire section with the external file, it can just contain elements that you want to have in addition, or to override the values:</p> <blockquote> <p>You can use the file attribute to specify a configuration file that provides <em>additional settings</em> or <em>overrides the settings</em> that are specified in the appSettings element.</p> </blockquote> <p>If you are using <a href="http://msdn.microsoft.com/en-us/library/ms228167.aspx" rel="nofollow noreferrer">ConfigSource</a> to share other elements, then you will still have automatic restarts of the application when values are changed - the note about the restartOnExternalChanges attribute should be ignored for ASP.NET applications, however using the File attribute will mean that changes won't cause a restart.</p> <p>The contents of the external files should still be cached, so perfromance shouldn't be impacted.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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