Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8396955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:40:11+00:00 2026-06-09T20:40:11+00:00

I have recently had to rebuild a C# interop created for calling from VB6.

  • 0

I have recently had to rebuild a C# interop created for calling from VB6. I have registered it with regasm (using codebase switch) and added the tlb as a reference to the VB6 project but when I attempt to call it I get the following automation error: -2146232832 (0x80131600)

If I register the existing interop dll in exactly the same way and add to my project, it works fine. The only differences I can think of are that the project has since been upgraded from VS8 to VS9 (same .net version though), and I’m now compiling on a 64-bit machine (which I know there are issues around this). I have set the project to compile as x86 but I still get the automation error.

Any ideas??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:40:12+00:00Added an answer on June 9, 2026 at 8:40 pm

    Your C# code is throwing an exception and it isn’t being caught. Specifically an ApplicationException. That’s an exception that the framework code never throws, it must be located in your C# source code.

    You’ll need to debug the code if you can’t locate the problem. Do so with Project + Properties, Debug tab. Select “Start external program” and point it to c:\program files\microsoft visual studio\vb98\vb6.exe. Then Debug + Exceptions, tick the Thrown checkbox for CLR exceptions.

    You can now press F5 and the VB6 IDE start running. Load your VB6 project and reproduce the problem. The debugger stops at the line of C# code that throws the exception.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently had to move my project from using the CPython 2.6 interpreter
I have recently had a linux server compromised from bots uploading .php scripts and
Using PHP / MySQL all encoded up as UTF, we have recently had to
I have recently upgraded from websphere 5.1.2 to websphere 6.1 server. I had some
I have recently moved from Eclipse 3.4 to 3.5. In 3.4 I had a
I have recently had some input from a colleague regarding committing in a stored
We have recently started using git and had a nasty problem when someone committed
I have recently implemented an MVC3 website and had to now include data from
I am a big fan of textmate, and have recently had to start using
I had written this code out using Adobe CS3 and have recently upgraded to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.