Microsoft KB Archive/925199

= Error message when you try to build an InfoPath 2007 form project: &quot;The file cannot be opened because it is being used by the Microsoft Office InfoPath Designer&quot; =

Article ID: 925199

Article Last Modified on 11/3/2006

-

APPLIES TO


 * Microsoft Office InfoPath 2007
 * Microsoft Visual Studio 2005 Tools for the Microsoft Office System

-



SYMPTOMS
Consider the following scenario. You are working on a Microsoft Office InfoPath 2007 form project in Microsoft Visual Studio 2005 Tools for the Microsoft Office System. You have the Manifest.xsf file open in the Designer. In this scenario, you receive the following error message when you try to build or to debug the InfoPath form project:

The file cannot be opened because it is being used by the Microsoft Office InfoPath Designer. Use the Microsoft Office InfoPath Designer to edit this file as part of the form template, or close the Microsoft Office InfoPath Designer to edit the file directly.



CAUSE
This issue occurs when the project contains a referenced assembly that has dependencies. When the Manifest.xsf file is open, Visual Studio Tools for Office cannot verify these dependencies. Therefore, Visual Studio Tools for Office may remove them. When the Manifest.xsf file is closed, Visual Studio Tools for Office can verify these dependencies.



WORKAROUND
To work around this issue, close the Manifest.xsf file, and then rebuild the InfoPath 2007 form project.

Additional query words: IP2007 InfoPath2007 VSTO

Keywords: kbtshoot kberrmsg kbexpertiseinter kbprb KB925199

-

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

© Microsoft Corporation. All rights reserved.