I have tried to register and consume a .NET dll with plain classic asp (Server.CreateObject). I think I have registered the DLL correctly (it shows up in Component Services just fine and gave me some error messages when the authentication wasn't setup properly), but I can't seem to get classic asp to reference the DLL with the Server.CreateObject method.
Here is the error message I get:
Server object error 'ASP 0177 : 80070002'
Server.CreateObject Failed
/newlogin.asp, line 10
80070002
Here is my code:
The DLL components do have a method called DoLogin and the spelling and case is correct.
Any ideas or suggestions?
Here is the error message I get:
Server object error 'ASP 0177 : 80070002'
Server.CreateObject Failed
/newlogin.asp, line 10
80070002
Here is my code:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title></title>
</head>
<body>
<%
Dim mylogin
Set mylogin = Server.CreateObject("Security.Login")
Response.Write mylogin.DoLogin("MyUsername","MyPassword")
%>
</body>
</html>
The DLL components do have a method called DoLogin and the spelling and case is correct.
Any ideas or suggestions?