![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I try to load a .NET assembly at run time from machine.config file for my Windows Service application. Here is my VB.NET code: Dim MyAssembly As [Assembly] MyAssembly = [Assembly].LoadFrom(AppSettings("PayoffInfo")) Dim MyTypea As Type = Type.GetType(MyAssembly.FullName) 'Obtain a reference to a method known to exist in assembly. Dim myMethod As MethodInfo = MyAssembly.GetTypes() (7).GetMethod("GetGenScreen_LoanNum") Dim parm() As Object = {101147} Dim ds As DataSet = myMethod.Invoke(MyTypea, parm) DataGrid1.DataSource = ds DataGrid1.DataBind() Above code work fine. However, I got error when tried to load another assembly using same code. Here is the error message: File or assembly name Radar.LoadAssembly.dll, or one of its dependencies, was not found. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |