无法加载文件或程序集“Microsoft.VisualStudio.Tools.Applications.Core,版本=10.0.0.0

Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Core, Version=10.0.0.0

TLDR:有谁知道我需要什么 C++ Redist 版本 and/or VSTA 包提供 Applications.Core 版本 10..?假设这是实际问题。


我们在 Windows 2008 R2 和 SQL Server 2008 上有一个 SSIS 包 运行ning。安装了 VS C++ Redist 2005、2008 和 2010...以及 VSTA 2.0 ENU.

正在将所有内容迁移到新服务器,Windows 2012 R2 和 SQL Server 2014。 我已经安装了 VS C++ Redist 2013、2015...以及 VSTA 2015。

当 SSIS 包 运行 来自新服务器时,它几乎立即抛出以下异常。

There was an exception while loading Script Task from XML: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Core, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.VisualStudio.Tools.Applications.Core, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

现在我确定我可以去安装所有旧的 C++ Redist,以及旧的 VSTA 版本,然后一旦它开始工作就卸载所有其他版本。但我宁愿 而不是 通过安装和卸载大量不必要的东西来弄乱这台服务器...留下软件的点点滴滴。

在作业步骤属性 => 常规(选项卡)=> 执行选项(选项卡)中。 . . .有一个 "Use 32 bit runtime" 选项未选中。检查并重新运行我的过程没有效果​​。

这会有帮助,你试过了吗?

http://pietervanhove.azurewebsites.net/?p=461

编辑 - 来自上面的 link:
要解决此问题,只需同时安装 SQL Server Data Tools 和 Integration Services。 SQL 服务器安装向导检测到它仍然必须安装 Microsoft Visual Studio Tools for Applications 3.0
x64和x86工具都比安装了。

我找到了如下简单的解决方案, 转到解决方案资源管理器 --> 右键单击 解决方案 -->属性

更改 Run64BitRunTime=False

对我有用。

Click for image of Solution Explorer-->Change to 32Bit