Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 我们可以向ssis中的脚本任务添加自定义项目dll吗?_Asp.net_Visual Studio 2010_Ssis - Fatal编程技术网

Asp.net 我们可以向ssis中的脚本任务添加自定义项目dll吗?

Asp.net 我们可以向ssis中的脚本任务添加自定义项目dll吗?,asp.net,visual-studio-2010,ssis,Asp.net,Visual Studio 2010,Ssis,我正在ssis 2008中创建一个integration services项目,并试图将自定义项目dll添加到脚本任务引用中并执行该包,但遇到以下异常: Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or

我正在ssis 2008中创建一个integration services项目,并试图将自定义项目dll添加到脚本任务引用中并执行该包,但遇到以下异常:

Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'example, Version=1.0.0.0, Culture=neutral, PublicKeyToken=--------' or one of its dependencies. The system cannot find the file specified.
File name: 'Example, Version=1.0.0.0, Culture=neutral, PublicKeyToken=-------'
   at ST_-------------.csproj.ScriptMain.Main()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [---\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [---\Software\Microsoft\Fusion!EnableLog].

   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

对你的问题的简短回答是“是”

但是,在执行包之前,需要在GAC中安装自定义DLL,并将其添加到.NET Framework文件夹中。(验证需要.NET Framework副本,执行需要GAC副本。是的,这很烦人。)