Help and Support
 

powered byLive Search

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

Article ID:922213
Last Review:February 7, 2007
Revision:1.2

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


APPLIES TO
Microsoft Office InfoPath 2007

Back to the top

Keywords: 
kbtshoot kbprb KB922213

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.