Access web.config appSettings in nodejs

I am making a prototype with nodejs + expressjs which are hosted on IIS7. I am trying to access appSettings in web.config in app.js after the sample from the message:

Accessing web.config settings from iisnode?

Unfortunately, the sample from the post above registers "undefined" instead of the value "test". Do I need to configure anything else in web.congig or app.js to access the values ​​of web.config?

I am using visual studio 2013 to start / debug a project and there was no problem to run it. Thanks you

+4
source share

Source: https://habr.com/ru/post/1648670/


All Articles