Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll

my Blog
[prev. Lesson]  VB: Simple Component
     [next Lesson]  VB: DLL overwrite problems

Registering A Component

The minimum recommended steps to register your C++/Visual Basic ASP component are:

  • Copy your component to where your System DLLs are
    (probably \winnt\system32)

  • DO NOT leave the component in the original directory!!!! Make sure the .DLL/component is only in the system directory and nowhere else. If regsvr32 is executed and it rgeisters a DLL that is not in the system directory your ASP pages may fail to instantiate the component with the dreaded message "Active X DLL cannot create object".

  • from a command prompt
    regsvr32 <your component name>

If you are updating a component (i.e. registering a component that replaces another component) instead:

  • Copy your component to where your System DLLs are
    (probably \winnt\system32)

  • DO NOT leave the component in the original directory!!!! Make sure the .DLL/component is only in the system directory and nowhere else. If regsvr32 is executed and it rgeisters a DLL that is not in the system directory your ASP pages may fail to instantiate the component with the dreaded message "Active X DLL cannot create object".

  • from a command prompt
    regsvr32 <old component name> -u

  • from a command prompt
    regsvr32 <your component name>

  • start and stop web service to purge old component from memory

Send Us a Holiday Gift!. Charles celebrates Christmas, Jewish holidays, Kwanza, Chinese New Year, Japanese Holidays, Secretary Day, High Muslim Holy Days, Pagan & Wicca holidays, and many more! - send a gift any HOLIDAY. 2004 gift gallery & 2005 gift gallery