DLL Information

J

Joe

Alright after much researching, I've come to the conclusion that I
need to post this here hoping to get a solid answer. I'm looking to
create a DLL that is capable of being used on all platforms that I
mentioned in my subject (1.1 framework, 2.0 framework, old ASP) I'm
hoping to be able to create this DLL via a 2.0 .net class library.
Once its created I want the ability to reference this DLL along with
all its methods and properties in both 1.1 .NET projects and an old
ASP project. I know in regular ASP you can create.objects() and in
1.1 you can just add references but I'm always unclear whether or not
this is possible to do with a 2.0 DLL. I seen to always have problems
adding a reference to a DLL in 1.1 when the DLL was created in 2.0.
Can anyone provide a reasonable answer to this question? The ideal
situation i'm looking for is 2.0 coding and then using that in the
other places. Does anyone have a solid answer out there?
 
C

Cowboy \(Gregory A. Beamer\)

I have a solid answer, but you might not like it. :)

The ASP.NET and ASP issue is fairly easy to solve. You simply make a COM
wrapper for the assembly. There is a tool called regasm.exe, in the
Framework, that allows you to both create the COM wrapper and register in
the Registry. Nice tool.

The 1.1 and 2.0 issue is a different story. There are two ways I can
recommend.

Way #1:
Create a 1.1 assembly and compile it. You can then use it in 2.0
applications, but I would consider recompiling in 2.0 regardless, as it is
more efficient.

Way #2
Create a 2.0 assembly and a web service (ASMX or WCF) to wrap it as a
service. Then, call this service from 1.1. Not true reuse, but it is a great
way to provide to all sorts of applications, .NET or otherwise.
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,078
Latest member
MakersCBDBlood

Latest Threads

Top