var config = WebConfigurationManager.OpenWebConfiguration("~");
model.RobocassaRequestUrl = config.AppSettings.Settings[RobocassaPaymentProcessor.AppRequestUrl].Value;
model.RobocassaLogin = config.AppSettings.Settings[RobocassaPaymentProcessor.AppLogin].Value;
model.RobocassaPassword = config.AppSettings.Settings[RobocassaPaymentProcessor.AppPassword].Value;
Either it can't open the "~" config or the corresponding AppSettings are missing. Should I add them manually somewhere (webconfig?) or it tries to access the wrong config file?