How to manage settings in a custom IIS managed module -


i'm developing iis 7 managed module, distributed along server-side software.

how can manage settings/configurations within iis module itself? example, how can let user set api-key internally used module?

i know in apache or in nginx can add settings directly in virtualhosts file (apache) , in nginx configuration files (nginx). wonder if there "best practice" iis modules.

yes there is, can use web.config files that, optionally define own configuration section, depending on how complex configuration is, maybe using existing appsettings section enough. module can read appsettings like: how read appsettings section in web.config file?

and best thing includes built-in ux in iis manager manage application settings. bad part not give validation customers, nor "intellisense" guide them through configuration.

if want define own section can at: http://www.iis.net/learn/develop/extending-iis-configuration/extending-iis-schema-and-accessing-the-custom-sections-using-mwa when add schema file, in iis manager able use "configuration editor" , give simple ui customers set validation, data type, collection management, etc.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -