How to read web.config from javascript - Web AppBuilder

3326
1
02-23-2017 08:38 AM
JoseSanchez
Occasional Contributor III

Hello everyone,

 I would like to read a Key located in the “web.config”  file running a Web App builder in IIS

 

<add key="ProjectPath" value="\\[server]\Project\Data\"/>


How can I read this info using  javascript, dojo from a Web AppBuilder inside ../Edit/Widget.js

 I am looking for the equivalent of this Vb.net line:


 backupProjectPath = ConfigurationManager.AppSettings("ProjectPath")


 Thanks

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Jose,

   The web.config file will never be accessible from client-side code as this would be a massive security risk.

0 Kudos