If I add settings to my app’s web.config file, is there an API to read the settings from my app or do I have to read the file using an XML library?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no special API that allows you read web.config into your node.js application running in iisnode. Having said that:
This example shows how promoted key/value pairs from the appSettings section in web.config are available as environment variables. In your web.config file:
In your node application:
console.log(process.env.abc); //--> test