Two Methods for registering DLL

Source: Internet
Author: User
Method 1: manually register DLL
This method is used from IIS 3.0 to IIS 4.0 and other Web servers. It requires you
To enter the directory containing the DLL, and enter:

<Drive >:\< ASP dir> \ regsvr32 component_name.dll
For example, c: \ temp \ regsvr32 aspemail. dll

It registers the specific DLL information into the registry on the server. Then this component can be used on the server,
However, this method has a defect. After the component is registered using this method, the component must be set to NT anonymous.
The account has the permission to execute this DLL. In particular, some components need to read the registry, so the method for registering this component is only
Used on the serverNo MTSTo cancel the registration of this DLL, use:

Regsvr32/u aspobject. dll
Example C: \ temp \ regsvr32/u aneiodbc. dll

Method 2: Use MTS (Microsoft Transaction Server)
MTS is a new feature of IIS 4, but it provides great improvements. MTS allows you to specify that only privileged users can
The access component greatly improves the security settings on the website server. To register a component on MTS, follow these steps:

(I) Open the IIS 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 often uses Administrator
Login)

Vi) Right-click the expanded "components" under the package you just created ". Select "New then component"
Vi) Select "install new component"
[B] VII) Find Your. dll file and select next.

To delete this object, you only need to select its icon and then select Delete.

Note: pay special attention to the second method, which is the best way to debug your own component, instead of having
Restart 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.