Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Register and consume a .NET dll with Classic ASP

Register and consume a .NET dll with Classic ASP

Register and consume a .NET dll with Classic ASP

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


Here is my code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
Dim mylogin
Set mylogin = Server.CreateObject("Security.Login")
Response.Write mylogin.DoLogin("MyUsername","MyPassword")

The DLL components do have a method called DoLogin and the spelling and case is correct.

Any ideas or suggestions?


RE: Register and consume a .NET dll with Classic ASP

Well, I got this partially working.  I had to include the /codebase option for regasm and then add the application in component services and then add the components and it worked!!!  Sort of anyway.  I am still having issues with accessing functions in the .NET assembly that are polymorphic (overrides of the original function).  I get an error that the parameters are not correct.

Any ideas of changes I can make to the COM setup so that I can access overridden functions?


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close