Microsoft KB Archive/222634

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

Article ID: 222634

Article Last Modified on 6/12/2001

-

APPLIES TO


 * Microsoft Transaction Services 2.0

-



This article was previously published under Q222634



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:

  In Visual Basic 5.0, create an ActiveX project, and add the following code: Public Function Func1 End Function  Compile the project into a .dll file. Copy the .dll file to Myref.dll. In the Project Properties Component tab set the project to Binary Compatibility, referencing Myref.dll Using MMC, add a new package.</li> Using MMC, add the new component created above. The interface for Func1 appears.</li>  Add a new function to the Visual Basic project as follows: Public Function Func1 End Function

Public Function Func2 End Function </li> Recompile the ActiveX DLL.</li> Close the Microsoft Transaction Server Explorer and reopen the Microsoft Transaction Server Explorer (MMC). Open the interface folder.</li></ol>

The following error appears:

Some object properties could not be read due to the following errors: This interface has been forwarded

Keywords: kbprb KB222634

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.