I have developed code in C#, and I want to use it in the integration services task script, but since external libraries cannot be used in that type of component, I want to reference this DLL from the task script.
Use the Add Reference > Browse option and set the DLL to the path where it is located.
But when I run the task script it gives me the error that it cannot find the DLL.
Error: Cannot load file or assembly ‘Decrypt, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the specified file.
And all the DLLs that were created were added as a reference.
As I mentioned above, try to add all the dlls that were generated since they are external libraries that are used in the code. This code when executed through CMD with the command dotnet nombre.dll if executed.
Antony Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3