Eccezione quando si aggiunge log4net config
Il problema era che avevo il <startup>
xml nel app.config
file all'inizio anziché alla fine del file. Deve essere l'ultima cosa nel app.config
file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
// lots of other stuff here...
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
</startup>
</configuration>