adding a reference

T

Tim Mulholland

I'm having a problem getting the ASPEmail library that my host uses loaded
into the references section of my local project.
I've downloaded the library and placed it on my work computer and my home
computer.
On my work computer, when i add it to the project as a reference, it coems
up with
(Name): ASPEMAILLib
Type: Assembly

but when i add it at home, it comes up as
(Name): Interop.ASPEMAILLib
Type: ActiveX

but i'm using the same dll! how can it be two different things?

Its called ASPEMAILLib on my host server, so that's what i need it to be.

Any suggestions?
 
T

Tim Mulholland

my problem was a stupid one. the aspemaillib.dll file found in the bin
directory is an activex control. the one found in the samples\bin directory
is an assembly.
i had chosen one in one project and the other in the second project.

why would this be the case, though?
 
H

Hans Kesting

Tim said:
my problem was a stupid one. the aspemaillib.dll file found in the bin
directory is an activex control. the one found in the samples\bin
directory is an assembly.
i had chosen one in one project and the other in the second project.

why would this be the case, though?

You can't directly access the ActiveX component from .Net.
When you add a reference to the ActiveX dll, VS.Net generates
a "runtime callable wrapper". That would be the "assembly" version.

Hans Kesting
 

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