I'd like to edit application-specific settings by using the IIS 7 Configuration Editor. The settings are stored in an applicationSettings
section, the kind automatically added for you when using Visual Studio to add settings to a project. My section looks like this:
<applicationSettings>
<My.Custom.Properties.Settings>
<setting name="SomePath" serializeAs="String">
<value>D:\Folder\SubFolder</value>
</setting>
</My.Custom.Properties.Settings>
</applicationSettings>
So, by following directions from here, and after a lot of trial and error, I am able to load the section into the IIS editor. I can see (and edit) the attributes on the setting
element. I can also see the value
element, but the folder path inside it is not loaded and it can't be edited, which is what I need! The schema I have added to IIS looks like this:
<configSchema>
<sectionSchema name="applicationSettings/My.Custom.Properties.Settings">
<collection addElement="setting">
<attribute name="name" type="string"></attribute>
<attribute name="serializeAs" type="string"></attribute>
<element name="value"></element>
</collection>
</sectionSchema>
</configSchema>
Has anybody succeeded in doing what I'm trying to do, or, is there a way around this that doesn't involve going back to the old appSettings
section?