How to load an assembly manually ?

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
 
B

bruce barker \(sqlwork.com\)

try:

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

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top