Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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 form urn is already registered at different location (C:\Program Files\Microsoft\InfoPath Form Template\InfoPath Form Template.xsn). 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.

↑ Back to the top


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.

↑ Back to the top


Workaround

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

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB922213, kbprb, kbtshoot

↑ Back to the top

Article Info
Article ID : 922213
Revision : 4
Created on : 2/7/2007
Published on : 2/7/2007
Exists online : False
Views : 250