O erro começou a aparecer quando adicionei a variavel:
<add key="Teste" value="true"/>
App.Config inteira:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="Teste" value="true"/>
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="x86"/>
</assemblyBinding>
</runtime>
</configuration>
C#:
if (Convert.ToBoolean(ConfigurationManager.AppSettings["Teste"]))
Alguém sabe oque pode ser? Valeu