Article ID: 222634 - Last Review: June 12, 2001 - Revision: 1.0

PRB: This Interface Has Been Forwarded Error in Visual Basic with MTS

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
This article was previously published under Q222634
Expand all | Collapse all

SYMPTOMS

After adding a new method to a component in Visual Basic and selecting Refresh, the user receives the following error:
This interface has been forwarded.

STATUS

This behavior is by design.

MORE INFORMATION

When you create a new method a new interface ID is created. Visual Basic keeps the old and new interface IDs and forwards information to the old ID. This creates a chain of GUIDs. By design, Microsoft Transaction Server (MTS) does not like these chains of forwarding; therefore, it gives you the error message. The proper way to handle this is to delete the component through the interface and add it back, eliminating the chain and error message.

The steps below can be used to reproduce the problem:

  1. In Visual Basic 5.0, create an ActiveX project, and add the following code:
    Public Function Func1()<BR/>
    End Function<BR/>
    						
  2. Compile the project into a .dll file.
  3. Copy the .dll file to Myref.dll.
  4. In the Project Properties Component tab set the project to Binary Compatibility, referencing Myref.dll
  5. Using MMC, add a new package.
  6. Using MMC, add the new component created above. The interface for Func1 appears.
  7. Add a new function to the Visual Basic project as follows:
    Public Function Func1()
    End Function
    
    Public Function Func2()
    End Function
    						
  8. Recompile the ActiveX DLL.
  9. Close the Microsoft Transaction Server Explorer and reopen the Microsoft Transaction Server Explorer (MMC). Open the interface folder.
The following error appears:
Some object properties could not be read due to the following errors: This interface has been forwarded

APPLIES TO
  • Microsoft Transaction Services 2.0
Keywords: 
kbprb KB222634
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.