简体   繁体   中英

How add Oracle managedaataaccess dll to Script Task in ssis

I need to make a connection to oracle via in ssis package. It occurred to me to implement the connection in a console application in c#

  1. First install the Oracle Managed Data Access nuget package in the console application

Install-Package Oracle.ManagedDataAccess.Core -Version 2.19.70

  1. Then I made the connection and the result was correct
  2. Copy the folder that downloaded the nuget installation to a path in C:, In the SSIS 2017 script task add the dll as a reference, but when executing the package it shows me the following error: Exception has been thrown by the target of an invocation And does not show more detail.

location where you deposit the nuget package enter image description here

I add the assembly from reference s enter image description here

Interruption point, which does not enter enter image description here

  1. put a breakpoint in the script task, but don't start. I'm thinking it's because of the dll

any ideas? Thanks.

Either install the components in the GAC (I believe there's an installer for that component that does), or register an AssemblyResolve event to find the assembly in a custom location. EG

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM