从 VS2012 运行 SSIS 包时未找到 IsVisualStudio2012ProInstalled() 方法错误 [英] IsVisualStudio2012ProInstalled() method not found error when running an SSIS package from VS2012

查看:33
本文介绍了从 VS2012 运行 SSIS 包时未找到 IsVisualStudio2012ProInstalled() 方法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Visual Studio 2012 中运行 SSIS 包.当我单击开始"按钮时,我在 Visual Studio 的弹出窗口中收到了这个非常奇怪的错误:

I'm trying to run an SSIS package in Visual Studio 2012. When I click the "Start" button I get this very odd error in a popup from Visual Studio:

Method not found: 'Boolean 
Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. 
(Microsoft.DataTransformationServices.VsIntegration)

点击显示技术信息,我得到这个堆栈跟踪:

Clicking on the show technical information, I get this stack trace:

===================================

Failed to start project (Microsoft Visual Studio)

===================================

Method not found: 'Boolean Microsoft.SqlServer.Dts.Design.VisualStudio2012Utils.IsVisualStudio2012ProInstalled()'. (Microsoft.DataTransformationServices.VsIntegration)

------------------------------
Program Location:

   at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)

有没有人以前见过这个错误或知道可能是什么问题?一点谷歌搜索对我来说完全没有结果.

Has anyone ever seen this error before or know what the issue might be? A bit of googling turned up absolutely nothing for me.

就在几天前,我能够愉快地从 Visual Studio 2012 开发和运行 SSIS 包而没有任何问题(我在周末重新启动了我的电脑并安装了一些 Windows 更新)

I was able to happily develop and run SSIS packages from Visual Studio 2012 without any issues just a couple days ago (I did reboot my PC over the weekend and some windows updates were installed)

预计到达时间:

我能够找到一些关于此的最新技术帖子此处此处 所以我怀疑这是周末更新中出现的问题.一个帖子说他通过重新安装解决了这个问题,但当然,如果我没有必要的话,我宁愿不走这条路.

I was able to find a couple very recent technet posts about this here and here so I suspect this was something that broke in an update over the weekend. One post says he solved the issue by reinstalling, but of course I'd rather not go that route if I don't have to.

推荐答案

  1. 以管理员身份打开 VS212 的开发人员命令提示符

  1. Open the Developer Command Prompt for VS212 as Administrator

执行命令 cd "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies"

执行命令gacutil/if Microsoft.SqlServer.Dts.Design.dll

重启 Visual Studio

restart Visual Studio

源 msdn 启动项目失败

对于 Visual Studio 2013 执行命令 cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies" 在点 2 和然后执行第3点和第4点.

For visual Studio 2013 execute the command cd "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies" in point 2 and then execute point 3 and 4.

这篇关于从 VS2012 运行 SSIS 包时未找到 IsVisualStudio2012ProInstalled() 方法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆