首页 > 其他 > 详细

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

时间:2015-05-21 16:50:17      阅读:218      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!