473,395 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

COM Interop registration failure

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
3 4980
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Johan Henningsson | last post by:
Hello, when I try to compile .net projects that is using interop then they fail. I get this error: "COM Interop registration failed. Could not load the assembly to be registered." What can...
0
by: Janus Kamp Hansen | last post by:
I have had this error: 'COM Interop registration failed. Type library exporter can not load required library MSCOREE.TLB.' I have found a solution, by using the Regmon tool...
2
by: Peter | last post by:
Hello Thanks for reviewing my question. I am writing a shared Office AddIn that uses a couple of user controls on a form and from time to time I receive this error "COM Interop registration...
5
by: Eric St-Onge | last post by:
Hi all, I have a C# DLL containing only interfaces that I want to have a TLB (type library) generated for. For that I use the "Register for COM Interop" compiler option but it gives me the...
0
by: Mark | last post by:
I have created a library that exposes classes to COM clients using the attribute . My library references 2 other libraries, lib1 and lib2, both of which are created by other developers on my...
0
by: zoneal | last post by:
I am having two problems concerning COM Interop Registration: While building a project (COM DLL) that has reference to other DLL project (not COM). I getting this error: COM Interop...
7
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
0
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the...
2
by: sanjay1983 | last post by:
Hi Everyone, I am stuck to access file properties using 'Interop.dsofile.dll'. I dont want registration of this assembly in system registry. I am using reflection to achive this, but at the time...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.