码迷,mamicode.com
首页 > 其他好文 > 详细

SSIS Error The Execute method on the task returned error code 0x80131621

时间:2015-05-21 16:53:10      阅读:323      评论:0      收藏:0      [点我收藏+]

标签:

Error Message: The Execute method on the task returned error code 0x80131621 (Mixed mode assembly is built against version ‘v2.0.50727‘ of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.). The Execute method must succeed, and indicate the result using an "out" parameter.

 

Solution: 因为编译时引用的dll使用了不同的.NET Framework版本,需要添加 useLegacyV2RuntimeActivationPolicy=”true”

<configuration>
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v4.0″ sku=”.NETFramework,Version=v4.0″/>
</startup>
</configuration>

参考: http://www.daimto.com/execute-ssis-packages-with-c/

SSIS Error The Execute method on the task returned error code 0x80131621

标签:

原文地址:http://www.cnblogs.com/yujwshx/p/4519916.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!