How to load an assembly manually ?

  • Thread starter Thread starter lothar.behrens
  • Start date Start date
L

lothar.behrens

Hi,

I have the following ASP code, that uses a .Net assembly by
programming.
Using the first line is working, but that don't let my load the
assembly at runtime.

The second line doesn't work and I don't know, how to solve this.

Is there a similar functionality for .Net like CreateObject for ActiveX
?

Dim myValidator As WL.MyValidator = New WL.MyValidator

Dim myValidatorRef As Object = CreateObject
("DotNetValidator.WL.MyValidator", "C000X013")

Dim s As String
Dim s1 As String

s = myValidator.Validate("Test")

s1 = s

Thanks, Lothar
 
try:

myClass myObj =
AppDomain.CurrentDomain.CreateInstance("myAssembly","myClass");

-- bruce (sqlwork.com)
 
Back
Top