Could anyone help me to resolve this issue? I'm told I can not keep Key/Credentials inside the controller so I tried to retrieve it from the config file and was able to print the value but I'm not able to use it inside the action filter attribute
[HttpPost]
[CaptchaValidator(PrivateKey ="123")] //This works
[CaptchaValidator(PrivateKey = System.Configuration.ConfigurationManager.AppSettings["myKey"])] //Error "Argument must be constant expression"
public ViewResult myForm()
{
//...
}