Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Clr procedure to load dll assembly using Reflection

$
0
0
Hi,I'm trying to load an assembly in order to instantiate a class and execute a method that returns a data table.Assembly file (*.dll) resides on a local drive (d:\temp\my.dll)I managed to load the assembly and perform the operation but for some reason i keep getting an error indicating Assembly.Load(..) failsCode fragmentstring dll_path = @"D:\temp\my.dll";var assName = AssemblyName.GetAssemblyName(dll_path);Assembly *** = Assembly.Load(assName.FullName);object o = Activator.CreateInstance(..)...Error:Could not load file or assembly 'My, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.Is there a way to use Reflection from within Clr stored procedure?thanksMichael

Viewing all articles
Browse latest Browse all 3145

Trending Articles