[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.interop

Error 'Microsoft.VisualBasic is not registered for COM interop'

Scuba Geek

10/4/2007 9:46:00 PM

One of the developers on my team keeps getting the error;

The assembly 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' is not registered for COM Interop. Please
register it with regasm.exe /tlb.

He ran regasm on microsoft.visualbasic.dll for the v2.0 framework according
to KB article #316163. This did not solve the problem.

Here is an example of the code that will not compile.
Create in a Class Library adn Enable for COM interop.

-------------------------------------------------------------------------------------------
Option Explicit On

Imports System.Runtime.InteropServices

Public Interface ITest_Util
Function CreateCollection() As Microsoft.VisualBasic.Collection
End Interface

<ClassInterface(ClassInterfaceType.None)> _
Public Class Test_Util : Implements ITest_Util

Public Function CreateCollection() As Microsoft.VisualBasic.Collection
Implements ITest_Util.CreateCollection

Return New Microsoft.VisualBasic.Collection
End Function

Public Sub New()
End Sub
End Class
-------------------------------------------------------------------------------------------

He is using Visual Studio 2005 Professional.

This example works on my own system and I am using Visual Studio 2005 TS for
Developers.
Does this other person on my team have to upgrade to Team System to compile
this simple example?

Please help me fix this issue or I will have to code this entire project all
by myself.

Thank you,

Rob McAllister
Agilent Technologies