If your application is linked to the .Net Framework version 4, write in the configuration section of the config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
Also make sure that the .Net runtime versions 2-3.5 are available on the server.