Building InfoPath forms in Visual Studio under source control (VSS/TFS/et. al) is very buggy - InfoPath Dev
in

InfoPath Dev

Now you can find InfoPathDev on YouTube and Twitter!

Building InfoPath forms in Visual Studio under source control (VSS/TFS/et. al) is very buggy

Last post 03-30-2009 08:03 AM by kkallweit. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-25-2009 08:38 PM

    Building InfoPath forms in Visual Studio under source control (VSS/TFS/et. al) is very buggy

    TFS and presumably other source control systems do not behave well with InfoPath forms under Visual Studio.  If you cannot open or build an Office InfoPath project in Visual Studio under source control, you need to read this KB article: http://support.microsoft.com/default.aspx?scid=kb;en-us;887039

    Not mentioned in the KB article, is that when you try to build, this error will show as:

    The "UpdateInfoPathManifest" task failed unexpectedly.
    System.UnauthorizedAccessException: Access to the path '<projectdir>\InfoPath Form Template\manifest.xsf' is denied."

    To fix this problem, check-out the manifest.xsf for edit.

     

    The problem gets worse if you use a secondary data source.  If you do, manifest.xsf will show that it has been modified.  Building will generate the error "The operation could not be completed".  Saving will generate the error "InfoPath cannot save the following form: InfoPath Form Template / The form is read-only."  The only workaround I have, is to simply not work under source control.

    Both of these problems have wasted a significant amount of my time and neither have easy to find solutions.  Hopefully someone else will find this information useful.  In short,

    using (var ide = new VisualStudio())
    using (var form = new InfoPath.Form()) { TFS.equals("Disaster!") }

  • 03-30-2009 08:03 AM In reply to

    Re: Building InfoPath forms in Visual Studio under source control (VSS/TFS/et. al) is very buggy

    I found that if I checkout the entire project and then perform my work it works fine. Also, manifest must be closed before checking back in or saving. It's weird, but it works.
Page 1 of 1 (2 items)
Copyright © 2003-2010 Qdabra Software. All rights reserved.
View our Terms of Use.