adding a reference

  • Thread starter Thread starter Tim Mulholland
  • Start date Start date
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?
 
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?
 
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
 
Back
Top