Reading a key from the Web.Config using ConfigurationManager

Try using the WebConfigurationManager class from the System.Web.Configuration namespace instead. For example:

string userName = WebConfigurationManager.AppSettings["PFUserName"]

Leave a Comment