Search code examples
c#asp.net.netvisual-studio-2010building

Assembly error building app - Encountered multiple versions of assembly


I was working today as I do everyday, when I tried to build my project and I got this error:

Encountered multiple versions of the assembly with GUID '00020430-0000-0000-c000-000000000046'. Try pre-importing one of these assemblies.

It says the problem is in the file TlbImp that's in the root directory of my application. The only problem is that I don't have such file in my project and as far as I remember never had.

I am working with a Web Application with Visual Studio 2010 (not sure if this information helps but well, whatever).


Solution

  • There is a Microsoft connect Bug filled for that

    It said that there a problem with a reference to an COM component.

    This was fixed and should be available in a future release of Visual Studio.
    (Note: This did not make it into SP1.)

    Tlbimp is the Type Library Importer. Visual Studio use it to generate the interop assembly of references to COM libraries you added.