To read the article online, visit

Registering a Component on the Web Server

By 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 Regsvr32.exe to 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 .dll file. An example of this would be:

Regsvr32 "C:\InetPub\Components\MyComponent.dll"

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!

Related Articles

  • Writing a COM Object with VisualBasic
  • Recompiling VB Components with PWS
  • Checklist for VB Component Troubleshooting
  • Building Windows Script Components
  • Visit the Components Discussion Forum on

  • Article Information
    Article Title: Registering a Component on the Web Server
    Article Author: Nathan Pond
    Published Date: Tuesday, May 23, 2000
    Article URL:

    Copyright 2019 QuinStreet Inc. All Rights Reserved.
    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers