Hybrid mode Program The set is generated for "v2.050727". Without configuration information, it is not delivered to the rack assembly during the 4.0 runtime.
A hybrid assembly is generated for v2.050727 and cannot be loaded at runtime 4.0 without configuration information.
My approach is to add app. config in the file as follows:
<Startup uselegacyv2runtimeactivationpolicy = "true">
<Supportedruntime version = "v4.0"/>
</Startup>
attributes |
description |
uselegacyv2runtimeactivationpolicy |
optional features. specifies whether to enable the Service.. NET Framework 2.0 runtime activation policy, or whether to use.. NET Framework Version 4 activation policy. |
Value |
Description |
True |
Enabled. net Framework 2.0 select the runtime, and the old runtime activation method is the runtime activation policy (for example, in the corbindtoruntimeex function) to select the configuration file, instead of setting its upper limit to the Runtime Library in CLR 2.0. Therefore, if four or more CLR versions are selected from the configuration file, the mixed-mode Assembly created using an earlier version of. NET Framework is loaded with the selected CLR version. |
See http://msdn.microsoft.com/zh-cn/library/bbx34a2h.aspx