The error began to appear when I added the variable:
<add key="Teste" value="true"/>
Entire App.Config:
<?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"]))
Does anyone know what it can be? Thanks.