title: Overload resolution failed because no 'item' is accessible
body: <p>I don't know why I am getting this error in my custom class </p>
  
  <blockquote>
    <p>Overload resolution failed because no 'item' is accessible" on line 15 and 16. To see the code follow the link </p>
  </blockquote>
  
  <pre><code>Imports System.Configuration
  
  Public Class AppSettings 
    Private config As Configuration
  
    Public Sub AppSetting()
      config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
    End Sub
  
    Public Function GetConnectionString(ByVal key As String) As String
      Return config.ConnectionStrings.ConnectionStrings(key).ConnectionString
    End Function
  
    Public Sub SaveConnectionString(ByVal key As String, ByVal value As String)
      config.ConnectionStrings(key).ConnectionString = value
      config.ConnectionStrings(key).ProviderName = "MySql.Data.MySqlClient"
      config.Save(configurationSaveMode.Modified)
    End Sub
  End Class
  </code></pre>