When you think ASP, think...
Recent Articles
All Articles
ASP.NET Articles
ASPFAQs.com
Message Board
Related Web Technologies
User Tips!
Coding Tips

Sections:
Sample Chapters
Commonly Asked Message Board Questions
JavaScript Tutorials
MSDN Communities Hub
Official Docs
Security
Stump the SQL Guru!
XML Info
Information:
Feedback
Author an Article
ASP ASP.NET ASP FAQs Message Board Feedback
Print this page.
Published: Tuesday, May 23, 2000

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.)

- continued -

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 ASPMessageboard.com


  • ASP.NET [1.x] [2.0] | ASPMessageboard.com | ASPFAQs.com | Advertise | Feedback | Author an Article