找不到SSIS 2012方法:无效

当我要打开OLE DB源组件时,我最近在每个SSIS包(使用Visual Studio 2012)中都收到此错误:

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

Method not found: 'Void Microsoft.DataTransformationServices.DataFlowUI.DataFlowConnectionPage.set_DataPreviewTimeout(Int32)'. (Microsoft Visual Studio)

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

at Microsoft.DataTransformationServices.DataFlowUI.OleDbSourceUI.SetConnectionPageDescriptions(DataFlowConnectionPage connectionPage)
at Microsoft.DataTransformationServices.DataFlowUI.DataFlowAdapterUI.AddCommonConnectionPage(DataFlowComponentForm form, String helpKeyword)
at Microsoft.DataTransformationServices.DataFlowUI.OleDbSourceUI.AddPagesToForm(DataFlowComponentForm form)
at Microsoft.DataTransformationServices.DataFlowUI.DataFlowComponentUI.EditImpl(IWin32Window parentControl)
at Microsoft.DataTransformationServices.DataFlowUI.DataFlowComponentUI.Edit(IWin32Window parentWindow, Variables variables, Connections connections)

上周它运行得很好,我想从那以后我没有做任何改变。有什么建议吗?

VS2012

我在安装了Visual Studio2010的计算机上遇到了同样的问题(尽管我确信推荐答案会有相同的分辨率)。我安装了Visual Studio2015,然后在VS2010中尝试打开ADO网络源代码或旧的DB源代码时开始收到此错误。我发现文件夹C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssemblies中的DatatrTransformationServices文件已损坏。我将所有Microsoft.DatatransformationServices文件从运行VS2010的计算机复制到本地计算机的文件夹C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssemblies

您可以在cmd中使用类似以下命令来执行此操作:

copy /Y "\GoodComputerNameC$Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssembliesMicrosoft.DataTransformationServices.*.dll" "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssemblies"

然后,我使用cmd中的以下命令将程序集添加到我的缓存中(只需将gacutil目录更改为文件夹C:Program Files (x86)Microsoft SDKsWindowsv10.0Ain中的最新版本,并将Visual Studio的文件夹更改为您收到错误的版本的文件夹):

cd "C:Program Files (x86)Microsoft SDKsWindowsv10.0AinNETFX 4.6.1 Tools"
gacutil /if "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssembliesMicrosoft.DatatransformationServices.DataFlowUI.dll"
gacutil /if "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssembliesMicrosoft.DataTransformationServices.Design.DLL"
gacutil /if "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssembliesMicrosoft.DataTransformationServices.DTSExecUI.Controls.dll"
gacutil /if "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssembliesMicrosoft.DataTransformationServices.Interfaces.dll"
gacutil /if "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssembliesMicrosoft.DataTransformationServices.VsIntegration.DLL"
gacutil /if "C:Program Files (x86)Microsoft Visual Studio 10.0Common7IDEPrivateAssembliesMicrosoft.DataTransformationServices.Wizards.DLL"

相关文章