<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Opening one InfoPath form from another in Code</title><link>https://www.infopathdev.com:443/forums/thread/65613.aspx</link><pubDate>Thu, 31 Mar 2011 04:44:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65613</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65613.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65613</wfw:commentRss><description>&lt;p&gt;Hi Catharine,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve never seen that warning message before. My guess is that maybe you had a previously installed URN version of the form (MSI deployment) and that the form on the SharePoint site was deployed as a URN based solution and was since updated. That is indeed a corner case but it could produce something like what you saw.&lt;/p&gt;
&lt;p&gt;Best!&lt;/p&gt;</description></item><item><title>Re: Opening one InfoPath form from another in Code</title><link>https://www.infopathdev.com:443/forums/thread/65564.aspx</link><pubDate>Tue, 29 Mar 2011 16:57:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65564</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65564.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65564</wfw:commentRss><description>&lt;p&gt;I have found the exception is&lt;/p&gt;
&lt;p&gt;System.Runtime.InteropServices.COMException (0x800430D8): InfoPath cannot open the following file: &lt;a href="http://.../eu-it/ARK/ARKDocuments/79.xml?util=openallforms"&gt;http://.../eu-it/ARK/ARKDocuments/79.xml?util=openallforms&lt;/a&gt;. The selected file is an update of a form on your computer. However, the update has been blocked because the author of the file cannot be verified. If this file is a legitimate update, use the Fill Out a Form dialog box to remove the original form from your computer, and then open this file. Form template name: ARKForm Form template ID: urn:schemas-microsoft-com:office:infopath:ARKForm:-myXSD-2008-10-20T11-19-34 Form template location: &lt;a href="http://.../eu-it/ARK/ARKContentTypeLibrary/ARKForm.xsn"&gt;http://.../eu-it/ARK/ARKContentTypeLibrary/ARKForm.xsn&lt;/a&gt; at Microsoft.Office.Interop.InfoPath.SemiTrust.XDocumentsCollectionWrapper.Open(Object varURI, Int32 dwBehavior) at Microsoft.Office.InfoPath.Internal.XmlFormsHost.Open(String fileLocation, XmlFormOpenMode behavior) at OpenAllForms.FormCode.OpenAllForms_Clicked(Object sender, ClickedEventArgs e)79&lt;/p&gt;
&lt;p&gt;I have since cleared the Infopath cache of the (Run Infopath /cache clearall)&lt;/p&gt;
&lt;p&gt;And it is now working again.&amp;nbsp; I have not changed the certificates at all.&amp;nbsp; Any ideas what could have caused it ?&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item><item><title>Opening one InfoPath form from another in Code</title><link>https://www.infopathdev.com:443/forums/thread/65559.aspx</link><pubDate>Tue, 29 Mar 2011 16:13:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65559</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65559</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a 2007 form which opens other 2007 forms from code.&amp;nbsp; I open the forms and submit them, to ensure that the OnFormOpen code gets run, and the data checked/updated&amp;nbsp;on a regular basis.&amp;nbsp; Neither the starting form or the forms it opens are browser enabled.&lt;/p&gt;
&lt;p&gt;My starting form is published to SharePoint, and the forms it opens are in a different SharePoint Forms Library.&amp;nbsp; This has worked fine in the past, I have not changed the form, but it has stopped working from SharePoint.&amp;nbsp; When I am using the designed version on my PC and running in preview it works.&amp;nbsp; Both forms are running with Full Trust and have valid security certificates.&lt;/p&gt;
&lt;p&gt;The bit of code in question is...&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;fileLocation = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;http://......../eu-it/ARK/ARKDocuments/&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; xmlfile &amp;amp; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;.xml?util=openallforms&amp;quot;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Try&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;returnValue = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Application.XmlForms.Open(fileLocation, behavior)&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Try&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;returnValue.Submit()&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Catch&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ex1 &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Exception&lt;br /&gt;returnValue.Close()&lt;br /&gt;failedtext = failedtext &amp;amp; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;| Failed to Submit &amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; node.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;./QDname&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Try&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;returnValue.Close()&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Catch&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ex &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; Exception&lt;br /&gt;failedtext = failedtext &amp;amp; &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;| Failed to Open&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &amp;amp; node.SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;./QDname&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value&lt;br /&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Try&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;I keep getting the &amp;quot;Failed to Open&amp;quot; returned.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Does anyone have any ideas why it works in preview and not in published mode ?&amp;nbsp; Or any ideas what could have stopped the published one from working ?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Any help would be gratefully received.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Thanks &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Catharine&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item></channel></rss>