You receive an error when you try to debug or preview a Microsoft Office InfoPath 2007 form
SYMPTOMSConsider 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.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. WORKAROUNDYou must remove the InfoPath 2007 form from the computer that is running Visual Studio before you try to debug the form. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
| Article Translations
|

Back to the top
