Is it possible to create ASP COM Objects in vb.net?
Posted on 2004-08-29
Hi there, I'm sure this is probably a stupid question, but for various reasons, I need to access a VB.NET object from within a standard ASP page. Is it possible to even do this and can anyone point me in the right direction of how to do it?
I have so far created a VB.NET class as follows:
Public Class LeapYear2
Public Function GetDate() As Date
' Return today's date
I then created a DLL which i registered using REGASM which seemed to work. I then created an ASP page with the following line in it:
Set oCheckYear = CreateObject("comtest3.LeapYear2")
However, when I run it I get the following error:
/comtest.asp, line 8
Any ideas - I feel like I'm banging my head against a wall at the moment!