用于Visual Studio 2017的SQL Server数据工具2017 - 无法启动调试器错误

时间:2018-05-28 09:21:51

标签: sql-server visual-studio ssis visual-studio-2017 sql-server-data-tools

在尝试运行涉及将小样本CSV文件导入SQL Server的简单SSIS项目时,我遇到调试器问题。

我使用“调试器错误Microsoft.DataTransformationServices.VsIntegration”搜索了StackOverflow并查看了所有搜索结果。

看起来大约一年前其他人与VS2015有同样的问题,但它从未得到解决。

Microsft SQL Server Data Tools for Visual Studio 2015 giving debugging error

我已经尝试查看事件查看器并生成了Visual Studio日志,但那里什么都没有。

当我尝试执行SSIS作业时,收到2条错误消息。

错误1:

Unable to start debugging.
The debugger is not properly installed.
Run setup to install or repair the debugger. (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)

错误2:

Unable to start program 'DTS'.

The debugger is not properly installed.  Cannot debug the requested type of code.  Run setup to install or repair the debugger. (Microsoft Visual Studio Debugger)

Program Location:

   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)

我在安装SSDT并使用Visual Studio 2017时遇到了很多麻烦,不得不求助于此处的解决方案。

SSDT installation issue (Failed to execute EXE package.)

有没有人遇到过这个问题并设法克服它?

与此同时,我将尝试重新安装有效内容文件夹中的软件包,看看是否可以解决此问题。

3 个答案:

答案 0 :(得分:1)

不好意思

我知道这是一个古老的问题,但是仍然有足够多的人尚未过渡到VS 2019,因此它才有意义。我第二次再次遇到这个问题,但是两次之间相隔很长时间。我完全忘记了问题所在和解决方案。

长答案

我已经记录了所有here

简短回答

这是我记录的简短版本:

  1. 不要急于卸载/重新安装Visual Studio 2017
  2. 请非常仔细地阅读VS 2017 SSDT下载页面上的蓝色框。这是关键
  3. 下载用于Visual Studio 2017的SSDT
  4. 运行安装程序,并注意安装程序,以查看是否警告您可能已存在的较旧扩展名或安装程序。请按照提供的说明进行操作。
  5. 假设您有此问题,请关闭安装程序。
  6. 卸载Visual Studio SSIS,SSRS和SSAS扩展(VSIX)
  7. 运行SSDT安装程序-确保它没有警告
  8. 继续安装
  9. 这应该可以解决问题,但这是一个复杂的问题,因此我无法保证。现在,在两台完全独立的机器(工作和家庭)上,这对我来说已经工作了两次。

答案 1 :(得分:0)

我确实能够解决SQL Server 2016和Visual Studio 2015以及各自的SSDT 2015的问题。我确保每次都以管理员身份安装(右键单击EXE并以管理员身份运行)。

我按照以下步骤操作:

  1. 我卸载了所有SQL Server Management Studio,SQL Server 2017,带有SSDT的Visual Studio 2017。

  2. 删除了文件夹

     C:\Users\me\AppData\Local\Microsoft\VisualStudio\14.0
     C:\Users\me\AppData\Roaming\Microsoft\VisualStudio\14.0
    
  3. 已安装的SQL Server 2016(以管理员身份)

  4. 已安装的SQL Server Management Studio最新版本(以管理员身份)

  5. 安装Visual Studio 2015(对我来说VS 2015给了一些丢失的DLL,我做了修复 - 它开始正常工作)

  6. 最后,我安装了2015年的Visual Studio数据工具。

  7. 请从here找到安装VS2015,SSDT-2015和SQL Server 2016的exes,您也​​可以通过搜索从官方网站下载。

    来自here

    和SSMS

    我希望这对某人有用。

答案 2 :(得分:0)

我通过在“执行SQL任务”中填写必填字段解决了此问题。我在“ SQL语句”字段中缺少该值。

我摆脱此错误的另一种方法是将“ DelayValidation”属性从False设置为True。但这只是一个解决方法,直到您解决实际问题为止。

此页面也很有帮助。

http://www.jamesserra.com/archive/2011/07/ssis-package-taking-forever-to-load-when-you-open-it/

DelayValidation <-在控制流任务中找到此属性

ValidateExternalMetadata <-在数据流任务中找到此属性