Adding assembly in SSIS script task -
05-02-2006
, 04:40 AM
Hi all,
I want to add assembly in a script task of SSIS. The procedure, I
followed is:
1. copy the .dll in 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727'
folder (that reference window does not have option for brows and it
wants the dll to be in the above folder else it doesnt get enlisted in
the available list of dlls.
2. Add reference of that DLL.
3. Call some function (I have created test DLL which even doesnt even
return anything or doesn access any I/O) The code is
using System;
using System.Collections.Generic;
using System.Text;
namespace TestLibrary
{
public class Class1
{
public void retString()
{
int c = 12;
}
}
}
4. Create the instance of this class in the script task and call the
function.
Somehow, it throws the following error:
'Could not load file or assembly 'TestLibrary, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
system cannot find the file specified.'
Could somebody please help me out in this problem??
Regards,
Gayatri. |