0

使用 SSDT (Visual Studio 2010)

我使用 Target Framework .net 4.0 在 C# (Visual Studio 2010) 中获得了自定义 dll 的代码。当我从构建它的位置引用我的 SSIS 脚本组件中的上述 dll 时,尽管脚本组件目标框架设置为 .net 4.0,但它会引发如下错误

TITLE:包验证错误

包验证错误


附加信息:

数据流任务 [脚本组件 [96]] 出错:System.Reflection.TargetInvocationException:调用目标已引发异常。---> System.IO.FileNotFoundException:无法加载文件或程序集“转换,版本=1.0.0.0,文化=中性,PublicKeyToken=61d0ad25bd7b3c3c”或其依赖项之一。该系统找不到指定的文件。在 ScriptMain..ctor() --- 内部异常堆栈跟踪结束 --- 在 System.RuntimeType.CreateInstanceSlow 的 System.RuntimeTypeHandle.CreateInstance(RuntimeType 类型,Boolean publicOnly,Boolean noCheck,Boolean& canBeCached,RuntimeMethodHandleInternal& ctor,Boolean& bNeedSecurityCheck) (布尔 publicOnly、布尔 skipCheckThis、布尔填充缓存、StackCrawlMark 和 stackMark)在 System.RuntimeType。Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance() 处的 SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.GetScriptEntryPoint(String versionGuid) 数据流任务 [脚本组件 [96]] 出错:System.Reflection.TargetInvocationException:已引发异常通过调用的目标。---> System.IO.FileNotFoundException:无法加载文件或程序集“转换,版本=1.0.0.0,文化=中性,PublicKeyToken=61d0ad25bd7b3c3c”或其依赖项之一。该系统找不到指定的文件。在 ScriptMain..ctor() --- 内部异常堆栈跟踪结束 --- 在 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) 在系统。Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.GetScriptEntryPoint(String versionGuid) 在 Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance( ) 数据流任务 [脚本组件 [96]] 出错:System.Reflection.TargetInvocationException:调用目标已抛出异常。---> System.IO.FileNotFoundException:无法加载文件或程序集“转换,版本=1.0.0.0,文化=中性,PublicKeyToken=61d0ad25bd7b3c3c”或其依赖项之一。该系统找不到指定的文件。在 ScriptMain..ctor() --- 内部异常堆栈跟踪结束 --- 在 System.RuntimeTypeHandle。

数据流任务 [SSIS.Pipeline] 出错:一个或多个组件验证失败。

数据流任务出错:任务验证期间出现错误。

(Microsoft.DataTransformationServices.VsIntegration)


纽扣:

好的

我究竟做错了什么?

4

0 回答 0