ConfigurationManager return null instead of string values

后端 未结 3 1529
北恋
北恋 2020-12-17 10:50

I am trying to retrieve values from my App.config file which is stored in my working directory, however when I run the program it returns null. I am very confused why this i

3条回答
  •  天命终不由人
    2020-12-17 11:21

    In Case all the settings are correct but still if you get null values, Please check your app.config file and replace the xml code as below,

    
    
      
        
      
    
    

    Now Run your Code, you might see the proper values

提交回复
热议问题