It is currently 21 April 2025, 13:11 Advanced search

FTP in programma Batch compilato con 4.0

In this forum you can post your ideas on how Instant Developer could be enhanced, so we can discuss them together.

FTP in programma Batch compilato con 4.0

Postby TamaraCocchi » 15 March 2022, 10:44

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>
TamaraCocchi
 
Posts: 4
Joined: 13 December 2019, 9:04

Return to Improvement Suggestions

Who is online

Users browsing this forum: No registered users and 4 guests

cron