无法在SSIS Web服务任务中加载文件或程序集错误

Sin*_*du_ 5 ssis web-services webmethod

我正在尝试使用SSIS中的Web服务任务调用Web服务.在HTTP连接管理器中我给了服务器URL,我还没有定义任何代理服务器.我下载了WSDL文件.我在"输入"选项卡中选择了"服务和方法".该方法需要我传递的字符串参数.我收到以下错误.我甚至尝试将保护级别更改为DontSaveSensitive但仍然出现此错误.请帮忙

 Error: 0xC002F304 at Web Service Task, Web Service Task: An error 
 occurred with the following error message: 
 "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: 
 Could not execute the Web method. The error is: Could not load file or 
 assembly 'Microsoft.SqlServer.WebServiceTask, Version=14.100.0.0, 
 Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its 
 dependencies. The system cannot find the file specified.at  Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
 at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Run Code Online (Sandbox Code Playgroud)

小智 6

请执行下列操作:-

  1. 右键单击并查找"配置属性",转到项目属性.
  2. 转到常规并检查SQL的TargetServerVersion是什么.在我的情况下它是SQL Server vNext但我在我的机器上有SQL Server 2014.
  3. 从深入分析中,选择适当的SQL Server版本.将出现提示.单击确定.
  4. 保存更改,重建应用程序,运行应用程序,您将看到所有工作正常.


Sin*_*du_ 4

在 Windows 8 中,程序集位于:C:\Windows\Microsoft.NET\Assembly\GAC_MSIL

该错误指出它在 Microsoft.SqlServer.WebServiceTask 中找不到文件或程序集。它还表示正在寻找 Version=14.100.0.0 和 PublicKeyToken=89845dcd8080cc91。

我进入以下路径:C:\ Windows \ Microsoft.NET \ assembly \ GAC_MSIL \ Microsoft.SqlServer.WebServiceTask

有 3 个文件夹,但名称中没有一个包含 Version 14。所以我创建了一个名为“v4.0_14.100.0.0__89845dcd8080cc91”的新文件夹

在此输入图像描述

我将 Microsoft.SqlServer.WebServiceTask DLL 从 v4.0_13.0.0.0__89845dcd8080cc91 文件夹复制到新文件夹 (v4.0_14.100.0.0__89845dcd8080cc91)。这对我有用。