COM Interop registration failure

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Recently I changed computers and had to reinstall Visual Studio. After this,
a solution that used to compile and produce a COM callable DLL now produces
the error message: "COM Interop registration failed. Could not find type
library for assembly 'Microsoft.VisualBasic' "

I haven't found any MSDN or KB articles that address this problem directly.
What do I need to do to fix this?
 
Hi,

Try reinstalling the dot net framework

Ken
------------------
Recently I changed computers and had to reinstall Visual Studio. After
this,
a solution that used to compile and produce a COM callable DLL now produces
the error message: "COM Interop registration failed. Could not find type
library for assembly 'Microsoft.VisualBasic' "

I haven't found any MSDN or KB articles that address this problem directly.
What do I need to do to fix this?
 
The problem turned out to be that somehow Microsoft.VisualBasic.dll had
become unregistered.

The solution was to run regasm from the VS.Net Command Prompt

regasm Microsoft.VisualBasic.dll /codebase /tlb (space before each slash)

This fixed the problem.

If you do a system search for Microsoft.VisualBasic.tlb and don't find it,
run the regasm above.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top