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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kyle AbrahamsSenior .Net DeveloperAuthor Commented:
I had a DLL conflict with a referenced DLL from a different project.  DLL hell.  Lovely, lol.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kyle AbrahamsSenior .Net DeveloperAuthor Commented:
Found the error on my own, leaving this in case someone else should run into a similar issue.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.