Register icsharpcode. sharpziplib. DLL to the operating system so that ASP can call through COM +

Source: Internet
Author: User

In the previous article Use a custom categorySharpzipRunZipCompression and decompression(VB. NET) Meow Sharpzip We made a package to make it more intuitive to use. Meow thought that if he could write COM + Component, you can ASP Or VB Call usage, more available.

ConvertCOM +Requires some additional settings, which is similarCOM +The component is written in the same way. For details, refer to this article:

N-tiers Development Method ( How to Use VB. NET Write COM + Components )
N-tiersDevelopment Method(COM +Component registration and Modification)

However, meow encounters a situation where the following error message appears when the registered component is called for use.

Unable to load files or components'Icsharpcode. sharpziplib, version = 0.85.4.369, culture = neutral, publickeytoken = 1b03e6acf1164f73'Or one of their dependencies. The system cannot find the specified file.

The reason is that Icsharpcode. sharpziplib. dll Not registered to the system, so when I write COM + To call this DLL You can't find it.

Therefore, you must OS Put this DLL Register. Because DLL Not COM + Of DLL , So use the following method to register

Enable Visual Studio 2005 Command Prompt characters (Vs2005 To install SDK Yes ) Then Icsharpcode. sharpziplib. dll Copy to a storage DLL And then enter the following two commands:

Regasm/TLB icsharpcode. sharpziplib. dll
Gacutil/I icsharpcode. sharpziplib. dll

This will DLL Generate TLB And register GAC . COM + You can call DLL And perform Compression / Decompressed.

After meow testing ASP In COM + Correct Compression / Decompress the file. In this way COM + Let ASP/ASP. NET/Vb/VB. NET All these systems can be compressed. / Decompression capability.

 

Related Article

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.