Microsoft.Office.Interop.Excel, Version=12.0.0.0版本高于引用的程序集(已解决)

Microsoft.Office.Interop.Excel, Version=12.0.0.0版本高于引用的程序集(已解决)

论坛里的帮助:http://bbs.csdn.net/topics/390639058?page=1.

一是可以修改web.config中的版本信息如:Microsoft.Vbe.Interop, Version=14.0.0.0, 把12.0.0.0改一下版本为14.0.0.0

  <system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>
        <add assembly="stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="office, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"/>
      </assemblies>
    </compilation>
  </system.web>

二是:删除.dll文件,重新引用一下。

原文地址:https://www.cnblogs.com/xdot/p/5318194.html