Microsoft KB Archive/922213

= You receive an error when you try to debug or preview a Microsoft Office InfoPath 2007 form =

Article ID: 922213

Article Last Modified on 2/7/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007

-





SYMPTOMS
Consider the following scenario. You use Microsoft Visual Basic or Visual C# in Microsoft Visual Studio to create a new Microsoft Office InfoPath 2007 form project. You build and publish the InfoPath 2007 form as an installable form template. This template can be a .js file or an .msi file. You install the InfoPath 2007 form on the computer that is running Visual Studio.

When you open the InfoPath 2007 form in the Visual Studio Designer, and you press F5 to debug the form, you receive an error message that resembles the following:

The form template for  is already registered at different location. If you want to use the form template from this location, you will need to register it by running the setup program for it.”

This problem occurs when you try to debug an InfoPath2007 form, or when you try to preview an InfoPath 2007 form, that was installed as a .js file or as an .msi file.



CAUSE
InfoPath 2007 projects that are created by using Microsoft Visual Studio Tools for Office System (VSTO) use the VSTO project files instead of the cache to preview an InfoPath 2007 form. In this case, the InfoPath 2007 form has been installed on the local computer. Therefore, the VSTO project files location is no longer valid.



WORKAROUND
You must remove the InfoPath 2007 form from the computer that is running Visual Studio before you try to debug the form.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Keywords: kbtshoot kbprb KB922213

-

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

© Microsoft Corporation. All rights reserved.