The first method of registering a component: Manually registering the DLL
This method is used from IIS 3.0 to IIS 4.0 and to other Web servers. It needs you on the command line.
To execute, go to the directory that contains the DLL, and enter:
<drive>:\<asp Dir>\regsvr32 Component_name.dll
such as C:\temp\regsvr32 AspEmail.dll
It registers specific information about the DLL into the registry in the server. This component can then be used on the server,
But there is a flaw in this approach. When the component is registered with this method, the component must set the NT anonymous
The account has permission to execute this DLL. In particular, some components need to read the registry, so the method for registering the component is simply
Use on the server
No MTScase, to unregister this DLL, use:
regsvr32/u Aspobject.dll
Example C:\temp\regsvr32/u Aneiodbc.dll
Second approach: Using MTS (Microsoft Transaction Server)
MTS is a new feature of IIS 4, but it provides a great deal of improvement. MTS allows you to specify that only privileged users can
Access to components, greatly improving the security settings on the Web server. The steps for registering a component on MTS are as follows:
I) Open the IIS Management Console.
II Expand Transaction Server, right-click "pkgs Installed" and select "New Package"
III) Click "Create an empty package"
IV) Name the package
V Specify the administrator account or use "interactive" (if the server is often using the administrator
Landing words)
VI) Now use the right mouse button to click the "components" below the one you just created. Select "New then Component"
VI Select "Install new component"
[b] (VII) Locate your. dll file and select next to complete.
To delete this object, simply select its icon, and then select Delete.
Note: Special attention should be paid to the second method, which is the best way to debug your own writing components without having to
Reboot the machine.