Run Time Error when using .Net COM DLL

I'm creating a C# dll that's com visible to be consumed in an MS Access application.

I've already checked the make com visible.

 my class has the header:

    [ClassInterface(ClassInterfaceType.AutoDual)]
    public class MyClass
    {
      // methods
    }

Open in new window


DLL is copied to syswow64, then registered with regasm using /codebase and specifying the TLB.

TLB Is added as a reference to access project.

The class is visible in access VBA.

When trying to invoke the class  I'm getting
Runtime Error '-2146233069 (80131513)' :  Automation Error

Going over the code but it's pretty straight forward.  If I invoke the class in C# via a test project (EG: reference the DLL project in a console application and call the same functions there) there are no issues or problems.  

Any thoughts or suggestions?
LVL 42
Kyle AbrahamsSenior .Net DeveloperAsked:
Who is Participating?
 
Kyle AbrahamsConnect With a Mentor Senior .Net DeveloperAuthor Commented:
I had a DLL conflict with a referenced DLL from a different project.  DLL hell.  Lovely, lol.
0
 
Kyle AbrahamsSenior .Net DeveloperAuthor Commented:
Found the error on my own, leaving this in case someone else should run into a similar issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.