COM Interop registration failed

  • Thread starter Thread starter John
  • Start date Start date
J

John

COM Interop registration failed. Type library exporter can not load required
library MSCOREE.TLB.

I'm currently receiving the above error message when building a sample
walkthrough which demonstrates COM interopability between ESRI's ArcGIS 9.1
and .NET. I'm using VS.NET 2003 Enterprise Developer and creating the
assembly in VB.NET (C# is not an option).

The SQLServer 2005 Beta 2 had been installed on the machine, but it was
uninstalled (about a year ago) when its version of the .NET Framework
(2.0.40607) was incompatible with ArcGIS 9.1. ArcGIS seems to have worked
fine after that.

Encountering this new problem, it appears that the uninstall of SQL Server
2005 Beta 2 was not clean, leaving at least one of the beta framework
components (MSCOREE.DLL) in the Windows\System32 folder (probably because it
was in use at the time) and a considerable number of registry entries.
Replacing the DLL with the earlier version (1.1.4322.573) has not fixed the
problem.

Has anyone else encountered this error after having installed the beta 2.0
..NET Framework and were then able to fix the problem without re-formatting
the drive? Any step-by-step instructions would be appreciated. I don't have
permissions to edit the registry, but I can pass any instructions on to
those who do.

Thanks in advance,

John
 
John said:
COM Interop registration failed. Type library exporter can not load required
library MSCOREE.TLB.

I'm currently receiving the above error message when building a sample
walkthrough which demonstrates COM interopability between ESRI's ArcGIS 9.1
and .NET. I'm using VS.NET 2003 Enterprise Developer and creating the
assembly in VB.NET (C# is not an option).

The SQLServer 2005 Beta 2 had been installed on the machine, but it was
uninstalled (about a year ago) when its version of the .NET Framework
(2.0.40607) was incompatible with ArcGIS 9.1. ArcGIS seems to have worked
fine after that.

Encountering this new problem, it appears that the uninstall of SQL Server
2005 Beta 2 was not clean, leaving at least one of the beta framework
components (MSCOREE.DLL) in the Windows\System32 folder (probably because it
was in use at the time) and a considerable number of registry entries.
Replacing the DLL with the earlier version (1.1.4322.573) has not fixed the
problem.

Has anyone else encountered this error after having installed the beta 2.0
.NET Framework and were then able to fix the problem without re-formatting
the drive? Any step-by-step instructions would be appreciated. I don't have
permissions to edit the registry, but I can pass any instructions on to
those who do.

Thanks in advance,

John

Please check if Arc Map or Arc Catalog is opened when you are building
the solution. I also got same message.
Regards,
-Venkat
 
It appears the problem was due to removed registry entries for some of the
Framework 1.1 type libraries. By checking my home computer, I was able to
see both the 1.1 and 2.0 (release version) entries for the libraries.
However, the office computer was showing entries only for the 2.0 beta
Framework (2.0.40607). Restoring the registry to provide locations for the
1.1 components fixed the problem. Besides MSCOREE.TLB, there was also an
issue with SYSTEM.TLB and SYSTEM.WINDOWS.FORMS.TLB. It isn't clear how the
1.1 entries were removed, but it may have happened during the uninstall
process of SQL Server 2005 Beta 2.

By the way, there were a huge number of entries for the SQL Server 2005 Beta
2 left in the registry. If anyone has installed this application, there's
quite a bit of work involved if the registry must be manually cleaned.

John
 
Back
Top