Windows service - COM class factory error 80070583
- by jawonlee
I have a Windows service that periodically scrapes some web pages, using mshtml and HtmlAgilityPack.
For this particular C# code snippet:
HTMLDocumentClass doc = new HTMLDocumentClass();
doc.write(new object[] { responseFromServer });
doc.close();
I get this error:
Retrieving the COM class factory for component with CLSID
{25336920-03F9-11CF-8FD0-00AA00686F13}
failed due to the following error: 80070583.
I tracked down the CLSID in the registry, and it turned out to be mshtml.dll. I also noticed that the version I actually have is version 7.0.6000.17023, and the registry version is listed as Version=7.0.3300.0.
The error code 80070583 means "Class does not exist"; interestingly, I've also gotten an error from the same program with error code 80070582, or "Class already exists". What does it all mean?
Edit: Since there are no answers, I ended up working around the problem, by ditching MSHTML and using HTML Agility Pack to parse HTML. How do I close this question?