Although the WebConfigurationManager is in Assembly: System.Web according to msdn. If you get this error message :
Cannot apply indexing with  to an expression of type ‘ConnectionStringSettingsCollection’.
It is because you haven’t add reference to System.Configuration.
This is exactly the example why I said msdn is very lamb.