By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,028 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,028 IT Pros & Developers. It's quick & easy.

COM Interop registration failure

P: n/a
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?
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

Try reinstalling the dot net framework

Ken
------------------
"SteveS" <St****@nospam.nospam> wrote in message
news:08**********************************@microsof t.com...
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?
Nov 21 '05 #2

P: n/a
Unfortunately, the result is the same.

"Ken Tucker [MVP]" wrote:
Hi,

Try reinstalling the dot net framework

Ken
------------------
"SteveS" <St****@nospam.nospam> wrote in message
news:08**********************************@microsof t.com...
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?

Nov 21 '05 #3

P: n/a
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.

"SteveS" wrote:
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?

Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.