jason-roberts / FeatureToggle

Simple, reliable feature toggles in .NET

Home Page:http://dontcodetired.com/blog/?tag=/featuretoggle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The connection string was not configured in <appSettings>

eliassal opened this issue · comments

Hi, I have an mvc project using this featureToggle and compiles with no issues in visual studio.
I have 2 keys in the web.cong as follows:

The table FeatureToggles is populated with data. Running the site, I get the following error:

The connection string was not configured in
with a key of 'FeatureToggle.HomePagefeatureToggle.ConnectionString'
or
'FeatureToggle.HomePagefeatureToggle.ConnectionStringName'
nor in
with a name of 'FeatureToggle.HomePagefeatureToggle'.

which is not true.

Thanks for your help

Here are the keys in appSettings

add key="FeatureToggle.HomePageFeatureToggle.ConnectionString" value="MusicStoreEntities"
add key="FeatureToggle.HomePageFeatureToggle.SqlStatement" value="select Enabled from FeatureToggles where Name = 'HomePagefeatureToggle'"

hi @eliassal the error says "HomePagefeatureToggle", your config has a different case F "HomePageFeatureToggle"

Oh my bad, so it is case sensitive, thanks, yes it is working like a charm now
Salam