<?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>Can't run InfoPath 2013-generated form on Office 2010 system</title><link>https://www.infopathdev.com:443/forums/thread/93544.aspx</link><pubDate>Tue, 08 Oct 2013 20:24:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93544</guid><dc:creator>PaulRAnderson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93544.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93544</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Our group uses Windows 7 and Office 2010 to use an internally-developed InfoPath form.&amp;nbsp; The development team has recently upgraded to Office 2013 and Visual Studio 2012.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;The first form published cannot be run on two of our users&amp;#39; systems, but runs on all the others.&amp;nbsp; The error is:&lt;/font&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;InfoPath cannot open the
selected form because of an error in the form&amp;#39;s code.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Could not load file or assembly
&amp;#39;C:\Users\William_Clogher\AppData\Local\Microsoft\InfoPath\FormCache3\70D634A9.385\e024d33cab5dd6c6$f7d1d1b252f648c\&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Final
SOW.dll&amp;#39; &lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;or one of its dependencies. &amp;nbsp;This assembly is built by a runtime newer
than the currently loaded runtime and cannot be loaded.&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;
Being an InfoPath 2010 project, after upgrading to InfoPath 2013, we did not change the target framework.&amp;nbsp; It remains .NET 2.0.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;When building the project under 2013 for the first time, we had to remove four references that could not be found:&lt;/font&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;&lt;font face="Times New Roman" size="3"&gt;Microsoft.Office.Interop.InfoPath&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;font face="Times New Roman" size="3"&gt;Microsoft.XslDebugger&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;font face="Times New Roman" size="3"&gt;Microsoft.XslDebugProxy&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;font face="Times New Roman" size="3"&gt;System.Core&lt;/font&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;No other attributes of the build were changed.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;The two &amp;quot;bad&amp;quot; systems appear to have the same configuration as all the other ones that work.&amp;nbsp; .NET 2, 3, 3.5 and 4 (full and client) are loaded on all per company policy.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;So my question is, what part of the assembly of this form (Final_SOW.dll) is incompatible with these two users&amp;#39; systems?&amp;nbsp; How shall I debug this?&amp;nbsp; I&amp;#39;ve attached a list of all references, and the version information for each, in case that helps.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Paul&lt;/font&gt;&lt;/p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;font size="2"&gt;&lt;p&gt;Name:            Microsoft.MSHTML&lt;br /&gt;
Path:            C:\Windows\assembly\GAC\Microsoft.MSHTML\7.0.3300.0__b03f5f7f11d50a3a\Microsoft.MSHTML.dll&lt;br /&gt;
Runtime Version: v1.0.3705&lt;br /&gt;
Version:         7.0.3300.0&lt;br /&gt;
&lt;br /&gt;
Name:            Microsoft.Office.Infopath&lt;br /&gt;
Path:            C:\Program Files\Microsoft Office\Office15\InfoPathOM\InfoPathOMV14\Microsoft.Office.Infopath.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         14.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            Microsoft.VisualStudio.Tools.Applications.Adapter&lt;br /&gt;
Path:            C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\Program Files\Reference Assemblies\&lt;br /&gt;
                  Microsoft\VSTA30\v11.0\.NET2.0\Microsoft.VisualStudio.Tools.Applications.Adapter.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         8.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            Microsoft.VisualStudio.Tools.Applications.Contract&lt;br /&gt;
Path:            C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\Program Files\Reference Assemblies\&lt;br /&gt;
                  Microsoft\VSTA30\v11.0\.NET2.0\Microsoft.VisualStudio.Tools.Applications.Contract.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         8.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            System&lt;br /&gt;
Path:            C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         2.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            System.AddIn.Contract&lt;br /&gt;
Path:            C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\Program Files\Reference Assemblies\&lt;br /&gt;
                  Microsoft\VSTA30\v11.0\.NET2.0\System.AddIn.Contract.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         2.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            System.Data&lt;br /&gt;
Path:            C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         2.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            System.Drawing&lt;br /&gt;
Path:            C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         2.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            System.Web&lt;br /&gt;
Path:            C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         2.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            System.Windows.Forms&lt;br /&gt;
Path:            C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         2.0.0.0&lt;br /&gt;
&lt;br /&gt;
Name:            System.Xml&lt;br /&gt;
Path:            C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll&lt;br /&gt;
Runtime Version: v2.0.50727&lt;br /&gt;
Version:         2.0.0.0&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>