A little experience with ASP components---two ways to register a component

Source: Internet
Author: User
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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.