PRB: Compilation Errors Appear in a Visual J# .NET Application If You Modify the GUID of the COM Component (818438)
The information in this article applies to:
- Microsoft Visual J# .NET 2002
SYMPTOMSYou have added a reference to the Component Object Model
(COM) component to your Microsoft Visual J# .NET application. When you modify
the globally unique identifier (GUID) after you add a reference to the COM
component, you receive the following compilation errors: /reference file <COMLIBDLL> not found The referenced
component <COMLIBDLL> could not be found. Could not load the type
library. Could not load the type library. Library not registered.
CAUSEEach COM component is identified by a GUID. When you refer
to the COM component in a Visual J# .NET application, the application uses the
GUID to interact with the COM component. When you modify the GUID of the COM
component, this change is not reflected in the Visual J# .NET application and
you receive the error that is mentioned in the "Symptoms" section of this
article.WORKAROUNDTo work around this problem, remove the reference in your
Visual J# .NET application, and then add the COM component as a reference. To
do this, follow these steps:
- In Microsoft Visual Studio .NET, open your Visual J# .NET
project.
- In Solution Explorer, right-click COM
component, and then click Remove.
- Right-click Visual J# .NET application,
and then click Add Reference.
- Follow the instructions in the Add Reference Wizard to add
the COM component as a reference.
STATUS This
behavior is by design.REFERENCESFor more information about Visual J# .NET, visit the
following MSDN Web site:
Modification Type: | Minor | Last Reviewed: | 8/15/2005 |
---|
Keywords: | kberrmsg kbCompiler kbJava kbCOMServices kbCOMInterop kbprb KB818438 kbAudDeveloper |
---|
|