Reading a key from the Web.Config using ConfigurationManager

后端 未结 10 1837
情书的邮戳
情书的邮戳 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:11

    If the caller is another project, you should write the config in caller project not the called one.

提交回复
热议问题