2017-05-08 71 views
3

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

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()". 
+0

我有同样的问题......您是否找到解决方案? – baileyswalk

+0

@baileyswalk是的,请看下面的答案。 –

回答

3

在Windows 8的组件位于:C:\ WINDOWS \ Microsoft.NET \装配\ GAC_MSIL

的错误指出它无法找到一个Microsoft.SqlServer文件或程序集。 WebServiceTask。它还表示它正在寻找版本= 14.100.0.0与PublicKeyToken = 89845dcd8080cc91。

我走进了以下路径:C:\ WINDOWS \ Microsoft.NET \装配\ GAC_MSIL \ Microsoft.SqlServer.WebServiceTask

并有3个文件夹,但他们都没有在其名称中的14版。所以,我创建了一个新的文件夹名称为“v4.0_14.100.0.0__89845dcd8080cc91”

enter image description here

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

2

执行以下操作: -

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