Microsoft KB Archive/818443

= BUG: &quot;Com.ms.wfc.core.WFCException&quot; Error Message When You Load a Data Form That You Generated By Using Data Form Wizard =

Article ID: 818443

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Visual J++ 6.0 Standard Edition
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows XP Professional for Itanium-based systems

-



SYMPTOMS
On a computer running Windows Server 2003, you use Data Form Wizard to generate a data form for a Visual J++ application. When you try to load the form in Design view, you may receive the following error message:

Unable to show the form designer because the following error has occurred: com.ms.wfc.core.WFCException: Failed remote creation of coclass com/ms/wfc/data/adodb/Connection: java.lang.reflect.InvocationTargetException.

The code view for the form has been shown instead. Fix the error, and then try to view this form again.

This problem occurs only in Design view. However, the form that the Data Form Wizard generated works as expected when you start the application.



WORKAROUND
To work around this problem, add a new form to the project, and then open and close the form in Design view. To do this, follow these steps:
 * 1) In the Project Explorer, right-click Project, point to Add and then click Add Form.
 * 2) On the New tab, click Form in the right pane of the dialog box, and then click Open.
 * 3) Double-click the form to open it in Design view.
 * 4) In the Designer, close the new form.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Behavior

 * 1) On a computer running Windows Server 2003, install Visual J++ 6.0.
 * 2) Install Visual Studio 6.0 Service Pack 5 (SP5).
 * 3) Start Visual J++ 6.0.
 * 4) Create a new Windows Application project.
 * 5) In the Project Explorer, right-click Project, point to Add, and then click Add Form.
 * 6) On the New tab, click Data Form Wizard in the right pane of the dialog box, and then click Open.
 * 7) Follow the instructions in the Data Form Wizard.
 * 8) Double-click the new form to open it in Design view.

