SSIS 2012 +脚本组件+自定义.dll参考

时间:2013-03-06 04:59:50

标签: sql-server-data-tools script-component ssis-2012

使用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:无法加载文件或程序集' Transformation,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 61d0ad25bd7b3c3c'或其中一个依赖项。该系统找不到指定的文件。    在ScriptMain..ctor()    ---内部异常堆栈跟踪结束---    在System.RuntimeTypeHandle.CreateInstance(RuntimeType类型,Boolean publicOnly,Boolean noCheck,Boolean& canBeCached,RuntimeMethodHandleInternal& ctor,Boolean& bNeedSecurityCheck)    在System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark)    在System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark)    在System.Activator.CreateInstance(Type type,Boolean nonPublic)    在System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes,StackCrawlMark& stackMark)    在System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)    在System.Reflection.Assembly.CreateInstance(String typeName,Boolean ignoreCase,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)    在Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.CreateScriptObjectHelper(Assembly scriptAssembly)    在Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.GetScriptEntryPoint(String versionGuid)    在Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance() 数据流任务出错[脚本组件[96]]:System.Reflection.TargetInvocationException:调用目标已抛出异常。 ---> System.IO.FileNotFoundException:无法加载文件或程序集' Transformation,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 61d0ad25bd7b3c3c'或其中一个依赖项。该系统找不到指定的文件。    在ScriptMain..ctor()    ---内部异常堆栈跟踪结束---    在System.RuntimeTypeHandle.CreateInstance(RuntimeType类型,Boolean publicOnly,Boolean noCheck,Boolean& canBeCached,RuntimeMethodHandleInternal& ctor,Boolean& bNeedSecurityCheck)    在System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark)    在System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark)    在System.Activator.CreateInstance(Type type,Boolean nonPublic)    在System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes,StackCrawlMark& stackMark)    在System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)    在System.Reflection.Assembly.CreateInstance(String typeName,Boolean ignoreCase,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)    在Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.CreateScriptObjectHelper(Assembly scriptAssembly)    在Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.GetScriptEntryPoint(String versionGuid)    在Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance() 数据流任务出错[脚本组件[96]]:System.Reflection.TargetInvocationException:调用目标已抛出异常。 ---> System.IO.FileNotFoundException:无法加载文件或程序集' Transformation,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 61d0ad25bd7b3c3c'或其中一个依赖项。该系统找不到指定的文件。    在ScriptMain..ctor()    ---内部异常堆栈跟踪结束---    在System.RuntimeTypeHandle.CreateInstance(RuntimeType类型,Boolean publicOnly,Boolean noCheck,Boolean& canBeCached,RuntimeMethodHandleInternal& ctor,Boolean& bNeedSecurityCheck)    在System.RuntimeType.CreateInstanceSlow(Boolean publicOnly,Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark)    在System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly,Boolean skipCheckThis,Boolean fillCache,StackCrawlMark& stackMark)    在System.Activator.CreateInstance(Type type,Boolean nonPublic)    在System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes,StackCrawlMark& stackMark)    在System.Activator.CreateInstance(Type type,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)    在System.Reflection.Assembly.CreateInstance(String typeName,Boolean ignoreCase,BindingFlags bindingAttr,Binder binder,Object [] args,CultureInfo culture,Object [] activationAttributes)    在Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.CreateScriptObjectHelper(Assembly scriptAssembly)    在Microsoft.SqlServer.Dts.Pipeline.VSTAComponentScriptingEngine.GetScriptEntryPoint(String versionGuid)    在Microsoft.SqlServer.Dts.Pipeline.ScriptComponentHost.CreateUserScriptInstance() 数据流任务[SSIS.Pipeline]出错:"脚本组件"验证失败并返回验证状态" VS_ISBROKEN"。

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

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

(Microsoft.DataTransformationServices.VsIntegration)


按钮:

确定

我做错了什么?

0 个答案:

没有答案