You open a file “App.config” from Solution Explorer and try this steps
Solution:1
<startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> </startup>
Solution:2
<startup useLegacyV2RuntimeActivationPolicy="true"> </startup>