无法在GAC中添加SSIS中的引用

我创建了2个类库,abc.utility.dll和xyz.utility.dll

我已使用命令提示符在GAC中注册了此项。 但是,当我打开我的SSIS包并尝试从.NET选项卡添加abc和xyz的引用时。 我无法在.NET选项卡中看到这些dll。

我通过拖放到c:/ windows / assembly添加了两个dll使用Windows资源管理器并尝试使用浏览选项添加它,但它没有将这些dll添加到我的项目中。

从我的重复问题

我在2008年有一个SSIS包。我在visual studio 2010中创建了一些库,并在3.5中编译。 我需要将这些库集成到SSIS包中。 我将这些库注册到GAC中,但是当我尝试将这些dll的引用添加到SSIS中时,我没有在Add Reference – > .Net部分找到。 然后我必须通过编译的dll中的browse选项添加dll。 编译SSIS时没有问题。 一旦我运行SSIS包,它就会显示以下错误


System.Reflection.TargetInvocationException:调用目标抛出了exception。 —> System.IO.FileNotFoundException:无法加载文件或程序集’Utility,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 632cda921675b9e7’或其依赖项之一。 该系统找不到指定的文件。 文件名:’Utility,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 632cda921675b9e7’at at ST_969c7b257dd94f948f31afd96a2b2afd.csproj.ScriptMain.Main()

预绑定状态信息=== LOG:User = SEI-DOMAIN-1 \ PSaha LOG:DisplayName = Utility,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 632cda921675b9e7(完全指定)LOG:Appbase = file:/ // C:/ Program Files / Microsoft SQL Server / 100 / DTS / binn / LOG:Initial PrivatePath = NULL调用程序集:(未知)。 ===日志:此绑定在默认加载上下文中启动。 日志:使用应用程序配置文件:C:\ Program Files \ Microsoft SQL Server \ 100 \ DTS \ binn \ DtsDebugHost.exe.Config日志:使用C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727中的计算机配置文件\ CONFIG \ machine.config中。 日志:后策略引用:Utility,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = 632cda921675b9e7日志:尝试下载新的URL文件:/// C:/ Program Files / Microsoft SQL Server / 100 / DTS / binn / Utility.DLL。 日志:尝试下载新的URL文件:/// C:/ Program Files / Microsoft SQL Server / 100 / DTS / binn / Utility / Utility.DLL。 日志:尝试下载新的URL文件:/// C:/ Program Files / Microsoft SQL Server / 100 / DTS / binn / Utility.EXE。 日志:尝试下载新的URL文件:/// C:/ Program Files / Microsoft SQL Server / 100 / DTS / binn / Utility / Utility.EXE。

—内部exception堆栈跟踪的结束—在System.RuntimeMethodHandle.InvokeMethodFast(Object target,Object []参数的System.RuntimeMethodHandle._InvokeMethodFast(Object target,Object [] arguments,SignatureStruct&sig,MethodAttributes methodAttributes,RuntimeTypeHandle typeOwner)中System.Reflection.RuntimeMethodInfo.Invoke(Object obj)中的System.Reflection.RuntimeMethodInfo.Invoke(Object obj,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo culture,Boolean skipVisibilityChecks)中的,Signature sig,MethodAttributes methodAttributes,RuntimeTypeHandle typeOwner) ,BindingFlags invokeAttr,Binder binder,Object []参数,CultureInfo文化)
at System.RuntimeType.InvokeMember(String name,BindingFlags bindingFlags,Binder binder,Object target,Object [] providedArgs,ParameterModifier [] modifiers,CultureInfo culture,String [] namedParams)at System.Type.InvokeMember(String name,BindingFlags invokeAttr, Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript(Binder binder,Object target,Object [] args,CultureInfo culture)