How to read appSettings section in the web.config file?

Since you’re accessing a web.config you should probably use

using System.Web.Configuration;

WebConfigurationManager.AppSettings["configFile"]

Leave a Comment