Cannot get a DLL to work using ASP.
I am starting to learn ASP and want to create an instance of an object contained in a DLL. To do this I created a simple DLL using visual basic (which worked fine when I called it from another visual basic program). The code is:
Option ExplicitOn
Option Strict On
Public Class IEECable
Public Sub New()
MyBase.New()
End Sub
Public Function multiply(ByVal a As Double, ByVal b As Double) As Double
multiply = a * b
End Function
End Class
I then created the following ASP page:
<%Option Explicit %>
<%' Begin Runtime Code
Dim objM
Set objM = Server.CreateObject("IEECable.IEECable")
Dim ans
ans=objM.multiply(3,4)
Response.Write ans
%>
When I load the page I get the following error:
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/pages/IEEsingleCableReport.asp, line 10
800401f3
Please can someone tell me what I am doing wrong?