Forum Moderators: open

Message Too Old, No Replies

Creating a compiled class

How to build a reuseable object in .net + Com question?

         

RossWal

12:38 am on Feb 12, 2004 (gmt 0)

10+ Year Member



I have a class written in classic asp that I need to make into an object to be instantiated in asp.net pages. I've never done this & I wonder if someone could point me to a tutorial, outline the steps, or whatever? I guess I need to research assigning namespaces & that aspect as well. As an additional complication, the class that I'm porting to .net uses a com object.

Any reading or guidance to get me started will be appreciated.

Thanks,
Ross

TheNige

7:56 pm on Feb 12, 2004 (gmt 0)

10+ Year Member



If you are using VS.Net it is as simple as creating a new "Assembly" project. Just write your class code in there and you can also make a reference to your COM object in the references for the project.

Compile the assembly and then drop it in the bin folder of you ASP.Net app. You can then make a reference to it in your ASP.Net app and use it just like another object.

4guysfromrolla have a good article on "COM Interoperability in the .NET Framework
"