Try using the WebConfigurationManager class from the System.Web.Configuration
namespace instead. For example:
string userName = WebConfigurationManager.AppSettings["PFUserName"]
More Related Contents:
- Restarting (Recycling) an Application Pool
- ASP.NET MVC Binding to a dictionary
- ASP.NET MVC: No parameterless constructor defined for this object
- Dependency Injection in attributes
- Correct, idiomatic way to use custom editor templates with IEnumerable models in ASP.NET MVC
- Custom validation attribute that compares the value of my property with another property’s value in my model class
- When I post back to my controller all values for my model are null
- Validation failed for one or more entities while saving changes to SQL Server Database using Entity Framework
- prevent property from being serialized in web API
- ASP.NET MVC Global Variables
- asp.net MVC 4 multiple post via different forms
- Razor: Declarative HTML helpers
- How do I use ASP.NET Identity 2.0 to allow a user to impersonate another user?
- Adding your own HtmlHelper in ASP.NET MVC 3
- asp.net identity get all roles of logged in user
- asp.net-mvc: razor ‘@’ symbol in js file
- When should I use Html.Displayfor in MVC
- I want to understand the lambda expression in @Html.DisplayFor(modelItem => item.FirstName)
- How to create roles in ASP.NET Core and assign them to users?
- Determine Client’s Computer Name
- MVC 5 BeginCollectionItem with Partial CRUD
- How to manually validate a model with attributes?
- how to add querystring values with RedirectToAction method?
- Need an ASP.NET MVC long running process with user feedback
- Redirect to another page when user is not authorized in asp.net mvc3
- Model binding with nested child models and PartialViews in ASP.NET MVC
- How to use SqlClient in ASP.NET Core?
- System.web.mvc missing
- How to route EVERYTHING other than Web API to /index.html
- Using DataAnnotations to compare two model properties