Rendo pubblica una problematica che abbiamo riscontrato e come l'abbiamo risolta.
Abbiamo un servizio batch che deve fare un invio FTP e avevamo necessità che fosse compilato in 4.x.
Mi dava però questo errore: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Abbiamo risolto aggiungendo un file NOMEBATCH.exe.config con la seguente dicitura
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>