Making an attempt to utilize HtmlAgilityPack

dll html-agility-pack

Question

Trying to install HtmlAgilityPack.dll version 1.4 is giving me issues. My windowssystem32 folder is where I copied the files, and I tried running regsvr32 htmlagilitypack.dll from there.

I encountered the following error:

The module was loaded but the entry point DllUnregisterServer was not found.

The dll's can't be damaged since it seems to be a widely used library on SO. How can this be fixed?

1
1
12/21/2010 1:43:01 AM

Accepted Answer

The limitation on your usageregsvr32 COM libraries are COM libraries; the HTML Agility bundle is not. You must use a.NET project as a reference since it was developed in.NET.

  1. Install the most recent zip file on your local hard drive by extracting it there, for example.c:\SharedLibs\HtmlAgilityPack .
  2. Activate Visual Studio (or one of the VS Express editions)
  3. Open an existing project or start a new one.
  4. Right-click References in the solution explorer and choose Add citation.
  5. Navigate to the location where you extracted the agility pack by clicking the Browse tab.
  6. Choose the DLL for HtmlAgilityPack.dll.
  7. Input OK.

Visit the CodePlex website:

Html Agility Pack Home
Html Agility Pack Examples

Here are a few links I found using everyone's preferred search engine:

A simple web crawler in C# using HtmlAgilityPack
.NET Html Agility Pack: How to use malformed HTML just like it was well-formed XML...

3
12/21/2010 2:02:19 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow