Reading a key from the Web.Config using ConfigurationManager

后端 未结 10 1858
情书的邮戳
情书的邮戳 2020-11-28 17:55

I am trying to read the keys from the Web.config file in a different layer than the web layer (Same solution)

Here is what I am trying:

         


        
10条回答
  •  盖世英雄少女心
    2020-11-28 18:26

    This issue happens if this project is being used by another project. Make sure you copy the app setting keys to the parent project's app.config or web.config.

提交回复
热议问题