I cannot build a project, written by an ex-employee, on my Windows 7 workstation. It works perfectly fine on the old XP machine he used and I have an exact copy.
Error 1 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. C:\Working\Scan\v2.5.9.99\ConfigurationTool\ConfigurationTool\SGEN ConfigurationTool
I have already searched for a solution to this error message but I have found that the solutions provided do not resolve the problem :(
This is how my config file started off, useLegacyV2RuntimeActivationPolicy is already present.
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<requiredRuntime version="v4.0.20506"/>
</startup>
</configuration>
I have tried every suggested combination as well as different profile for full and client versions, as outlined in this thread with no results.
Has anyone got a fix or any ideas on what could be causing the difference between the copies on different machines?
SGEN
, then the fix needs to be in a filesgen.exe.config
, next tosgen.exe
. For example, for VS 2015, createC:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\sgen.exe.config
. Source: SGEN Mixed mode assembly Minimum file contents:<configuration><startup useLegacyV2RuntimeActivationPolicy="true"/></configuration>
– ToolmakerSteve