【Assembly】Mixed mode dll unable to load in .net 4.0

【问题描述】

  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.
【解决方案】

  在Config文件中,作修改如下:

  

<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
  </startup>
</configuration>
posted @ 2010-12-25 10:37  玄黄道长  阅读(332)  评论(0编辑  收藏  举报