sql-server - 将程序集添加到缓存 : This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded 失败

标签 sql-server visual-studio visual-studio-2012 ssis etl

我遇到了同样的问题: IsVisualStudio2012ProInstalled() method not found error when running an SSIS package from VS2012 (我没有足够的代表发表评论并在那里寻求帮助)。当我安装了 visual studio 2012 但随后安装了 visual studio 2015 时,这个问题就开始了,我工作的商店同时使用了这两种软件。

我按照#1 答案的说明进行操作,但出现以下错误

我在命令提示符中输入了这个:

C:\Program Files (x86)\Microsoft Visual Studio 
11.0\Common7\IDE\PrivateAssemblies>"C:\Program Files (x86)\Microsoft 
SDKs\Windows\v7.0A\Bin\gacutil.exe" /if Microsoft.SqlServer.Dts.Design.dll

错误:

Failure adding assembly to the cache: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

最佳答案

我终于通过在我的计算机上找到更新版本的 gacutil 来实现它。您可以看到最初我正在查看 v7.0a 文件夹,但在我使用的 v8.0a 文件夹中找到了另一个有效的副本。

cd "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies"
"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\Bin\NETFX 4.0 Tools\gacutil.exe" 
/if Microsoft.SqlServer.Dts.Design.dll

关于sql-server - 将程序集添加到缓存 : This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57189959/

相关文章:

java - 为什么我无法在标签页中添加 ImageView?

c# - VS 2012 中缺少实体数据模型

visual-studio-2012 - VS2012 - 除了 Mindscape Web Workbench 或 Web Essentials 2012 之外,免费的支持更少吗?

sql - 由于空值,使用 Case 语句更新失败

sql - 无法绑定(bind)多部分标识符 "i.charged_amount"

c# - SqlCommand 不能删除触发器

SQL 查询给出一个数据值的总和并计算它超过 60 的次数

c++ - 构造函数中的字段初始化破坏内存

windows - 切换 JIT 调试器?

c# - 自动完成文本框的文件夹条目