简体   繁体   中英

c# script task SSIS include/access dll from reference not in GAC

I have:

  1. SSIS/.dtsx package with a script task in SSIS that I added references to. It works fine locally (assuming the .dlls are in the GAC).

    1. When depolying on the server it failes (assuming the .dlls are NOT references in the GAC) and I can not add them.

    2. The SSIS package is stored in Integration Services on the SQL server in the Stored Packages - MSDB

    3. The job runs on a schedule

    4. I do not have access or the ability to add .dlls or add items to the GAC on the server.

What I need to do is find a way to include the .dll in the script task inside the SSIS package so that the References point to those .dlls instead of any in the GAC.

I searched quite a bit and could not find a way to do this. Is it even possible? If so what/how do I do it?

Locally it does work, in server it cannot find a required reference. what referenced dll is missing? you know it?

Once you know what dll you need, get a copy of it and, even if you cannot install it on the server GAC, you can deploy it in the same folder you deploy your executable.

At runtime, your executable will first try to load the dll from the same folder, if not found, it will try searching in GAC.

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