Unable to generate a reference to file '<filename>' (use TLBIMP utility to reference COM DLLs): <error message>

The Visual Basic compiler calls the Assembly Linker (Al.exe, also known as Alink) to generate an assembly with a manifest. The linker has reported an error finding or validating a COM+ DLL file.

Error ID: BC30142

To correct this error

  1. Examine the quoted error message and consult the topic Al.exe Tool Errors and Warnings for further explanation and advice.

  2. If the desired reference is to a COM DLL rather than a COM+ DLL, use the Type Library Importer (Tlbimp.exe) to generate the reference.

  3. If the error persists, gather information about the circumstances and notify Microsoft Product Support Services.

See Also

Reference

Assembly Linker (Al.exe)

Al.exe Tool Errors and Warnings

Type Library Importer (Tlbimp.exe)

Other Resources

Product Support and Accessibility