In the configuration section of your app.config / web.config, add
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
The
useLegacyV2RuntimeActivationPolicy
is the main point here.