<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Building InfoPath forms in Visual Studio under source control (VSS/TFS/et. al) is very buggy</title><link>https://www.infopathdev.com:443/forums/thread/40126.aspx</link><pubDate>Mon, 30 Mar 2009 15:03:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40126</guid><dc:creator>kkallweit</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40126.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=40126</wfw:commentRss><description>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&amp;#39;s weird, but it works.</description></item><item><title>Building InfoPath forms in Visual Studio under source control (VSS/TFS/et. al) is very buggy</title><link>https://www.infopathdev.com:443/forums/thread/38953.aspx</link><pubDate>Thu, 26 Feb 2009 04:38:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38953</guid><dc:creator>Ryan Beesley</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38953.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=38953</wfw:commentRss><description>&lt;p&gt;TFS and presumably other source control systems do not behave well with InfoPath forms under Visual Studio.&amp;nbsp; If you cannot open or build an Office InfoPath project in Visual Studio under source control, you need to read this KB article: &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;887039"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;887039&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Not mentioned in the KB article, is that when you try to build, this error&amp;nbsp;will show as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The &amp;quot;UpdateInfoPathManifest&amp;quot; task failed unexpectedly.&lt;br /&gt;System.UnauthorizedAccessException: Access to the path &amp;#39;&amp;lt;projectdir&amp;gt;\InfoPath Form Template\manifest.xsf&amp;#39; is denied.&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;To fix this problem, check-out the manifest.xsf for edit.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem gets worse if you use a secondary data source.&amp;nbsp; If you do, manifest.xsf will show that it has been modified.&amp;nbsp; Building will generate the error &amp;quot;The operation could not be completed&amp;quot;.&amp;nbsp; Saving will generate the error &amp;quot;InfoPath cannot save the following form: InfoPath Form Template / The form is read-only.&amp;quot;&amp;nbsp; The only workaround I have, is to simply not work under source control.&lt;/p&gt;
&lt;p&gt;Both of these problems have wasted a significant amount of my time and neither have easy to find solutions.&amp;nbsp; Hopefully someone else will find this information useful.&amp;nbsp; In short,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;using (var ide = new VisualStudio())&lt;br /&gt;using (var form = new InfoPath.Form()) { TFS.equals(&amp;quot;Disaster!&amp;quot;) }&lt;font color="#80ff00" size="2"&gt;&lt;font color="#80ff00" size="2"&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>