In case anyone else is trying what I'm trying and finds this, the purpose of my doing this was to get SimpleMembershipProvider, which inherits from ExtendedMembershipProvider, to work with SQLite. If csSection.ConnectionStrings('mySQLite') IsNot Nothing AndAlso csSection.ConnectionStrings('mySQLite').ConnectionString connectionSettings.ConnectionString ThenĬsSection.ConnectionStrings('mySQLite').ConnectionString = connectionSettings.ConnectionStringĬonfigurationManager.RefreshSection() (dummyVirtualPath, virtualDirMap)ĭim mappedConfigFile = WebConfigurationManager.OpenMappedWebConfiguration(webConfigFileMap, dummyVirtualPath)ĭim config As = mappedConfigFile WebConfigurationManager.OpenWebConfiguration(Server.MapPath('~') & '/')ĭim csSection As ConnectionStringsSection = config.ConnectionStrings
Building on Vadim's answer, I found what he wrote didn't exactly work for my situation, so I used this instead: Dim connectionSettings As New ConnectionStringSettings('mySQLite', ConnectionStringHelper.M圜onnectionString)ĭim dummyVirtualPath As String = '/MyApp'ĭim virtualDirMap = New VirtualDirectoryMapping(Server.MapPath('~'), True)ĭim webConfigFileMap = New WebConfigurationFileMap()