Look like you using vb.net instead of c# -- brackets []
Here is the correct syntax for vb.net -- Parentheses ()
var country = System.Configuration.ConfigurationManager.AppSettings("LoginCountry").ToString()
By the way, I did get the same error "Identifier expected" using the code with [] in vb.net project VS2010. Replacing the brackets with parentheses make the error go away. So, I'm assuming that your project is using VB.NET language.