Expert: Adrian Herscu Date: 5/6/2001 Subject: how to register dll
Question I have 2 computer
PC1 | web server and asp page
PC2 | dll file that do anything with database and database
I use windows 98 and VB.I want to create asp page that call dll file from PC2. what I have to add on my asp page.And what I have to do to call dll from another computer in my asp.
P.S. do you have any web document about this.
Answer First of all, you cannot just call a .DLL from a ASP page.
What you can call from a ASP page is an automation object housed in an in-process server. An in-process server is one implemented as a .DLL.
So, what we have here? We have IIS with ASP engine which are one process. And we have another object, located in a .DLL, registered on other computer. Because this object is an in-process server it have to be located on the client computer. In order to activate it on the remote computer this object must be implemented as an out-of-process server (in a .EXE file) or it must be loaded by some process on the remote computer (this is called a surrogate in-process server), and that object be registered in the client computer's registry as a remote server.
Technically speaking, the above is feasible. But, why not to register the in-process server on the IIS computer, and then that object will make remote calls to the database computer?