Registering a Component on the Web ServerBy Nathan Pond
Components are useful for extending the functionality of ASP, and running certain processes much faster than can be expected from the ASP interpreter. They are also fairly easily developed, and when you develop one in a language such as Visual Basic or Visual C++, the component will automatically be registered on the computer it was developed on at compile time. However, in some circumstances, you do not develop on your production server, and need to manually register the component on another server. This article will describe the simple process involved in that. (If you're new to component development, you may wish to take the time to read my earlier article, Writing a COM Object with VisualBasic.)
When building a COM object, a
.dll file will be created. This is the binary form of your COM object.
First you need to move this
.dll file from your development computer to your server, and place it
into a directory. I have a
components directory in my
INetPub folder to store all
components that are accessed from ASP pages. After you have done that, you can use
register most any dll. Go to your start menu, and select 'Run' and click on it. You get the run dialog, you
can then type
regsvr32 followed by a space and the complete path to the
An example of this would be:
That's it! You should be presented a message saying it was registered successfully. Now it is registered and can be accessed from your ASP pages. Note that to accomplish this you need access to the Web server (either direct access or through some program like pcAnywhere.
That's all there is to it! Happy Programming!