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.