Howto troubleshoot vb6 dll 800a01ad error in c# application

Posted by phq on Stack Overflow See other posts from Stack Overflow or by phq
Published on 2010-04-30T10:15:58Z Indexed on 2010/05/01 1:07 UTC
Read the original article Hit count: 328

Filed under:
|
|
|

I have a dll that I created from a VB6 project that I am now using in a c# project. This has worked before but now when I try to return to the c# project to fix a bug, the program get a COMException stating roughly translated:

Could not create an instance of COM-component with CLSID {085E3494-9F78-47D5-B0E6-FA460FD3CBED} from IClassFactory because of the following error: 800a01ad.

So I try to create a new empty c# project with only one line in the main function:

OurNamespace.OurClass foo = new OurNamespace.OurClass();

Which fails with the same error.

I have registered the dll but that did not change the outcome of the problem.

The problem only occurs on the machine I am currently at, still I'm interested to understand the problem so that I know how to fix it if it occurs on a customers computer.

© Stack Overflow or respective owner

Related posts about vb6

Related posts about c#