How to register a component

Source: Internet
Author: User
There are two ways of answering
The first method: Manually registering DLLs This method is used from IIS 3.0 to IIS 4.0 and other Web servers. It requires you to execute it on the command-line, enter the directory containing the DLL, and enter:: regsvr32 component_name.dll for example C:empegsvr32 AspEmail.dll It registers specific information about the DLL into the registry on 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 be set to the appropriate NT anonymous account to execute the DLL. In particular, some components need to read the registry, so the method of registering the component is simply using the server without MTS, to unregister the DLL, using: regsvr32/u Aspobject.dll Example c:empegsvr32/u Aneiodbc.dll
The 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 have access to the component, greatly improving the security settings on the Web server. The steps for registering a component on MTS are as follows: I opens the IIS management Console.
II Expand Transaction Server, right-click "pkgs Installed" and select "New Package" III) Click "Create an empty package" IV to name the packet V) specify Administrat or Account or use "interactive" (if the server is often logged in with the administrator) now use the right mouse button to click the "Components" after the package that you just created. Select "New then Component" VI to select "Install new component" [B]VII) to locate your. dll file and select next to complete.
To delete this object, simply select its icon, and then select Delete. Note: In particular, note the second method, which is the best way to debug your own writing components, without having to reboot the machine every time.

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.