<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Document Information Panel (by InfoPath) with custom code generates always an error - even if there's no code.</title><link>https://www.infopathdev.com:443/forums/thread/95415.aspx</link><pubDate>Fri, 24 Jan 2014 11:24:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95415</guid><dc:creator>meneeraart</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95415.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=95415</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I hope anyone&amp;nbsp; is able to help me out. I&amp;#39;ve no clue what&amp;#39;s going on here.&lt;/p&gt;&lt;p&gt;This is the situation.&lt;/p&gt;&lt;p&gt;1)&amp;nbsp;I&amp;#39;ve got a document library with one content type called &amp;quot;My Content Type&amp;quot;&lt;br /&gt; 2) &amp;quot;My content type&amp;quot; does have a custom document information panel. The document information panel is a really simple one.&lt;br /&gt; 3) When I create a new document based on &amp;quot;My content type&amp;quot;, Word 2013 opens and show the content type. All good.&lt;br /&gt; 4) Now I add some custom code to the content type. Within InfoPath, I select one of the fields and choose from the &amp;quot;Developer&amp;quot; tap &amp;quot;Changed Event&amp;quot;.&lt;br /&gt; 5) Visual Studio opens up, it adds some standard blank skeleton code. I decide to leave this as it is (for testing purpose). So I click on save and close Visual Studio so I&amp;#39;m in InfoPath again.&lt;br /&gt; 6) I publish the InfoPath file.&lt;br /&gt; 7) When I test it again by creating a new document: Boom, error.&lt;/p&gt;&lt;p&gt;The error is:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;quot;Document Information Panel cannot open a new form.&lt;br /&gt; The form cannot be opened. To fix this problem, contact the form designer.&lt;br /&gt; Form template: https://mysite.sharepoint.com/sites/test/_cts/o2013/a1b41f163e432a31customXsn.xsn&lt;br /&gt; Document Information Panel cannot open the selected form because of an error in the form&amp;#39;s code.&lt;br /&gt;&amp;nbsp;Error in the application.&amp;quot;&lt;/p&gt;&lt;p&gt;This error doesn&amp;#39;t make any sense at all, since no&amp;nbsp;matter what code I add - it always gives this specific error message.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Related facts:&lt;/p&gt;&lt;p&gt;1) I added the Sharepoint site as Trusted Site in Internet Explorer;&lt;br /&gt; 2) In InfoPath, in the Security and Trust tab, I put the Security Leven on Full Trust and added a certificate.&lt;br /&gt; 3) Within Word 2013, I added the Sharepoint site as Trusted Site.&lt;br /&gt; 4) It just works fine in Word 2010.&lt;br /&gt; 5) A Microsoft Sharepoint specialist couldn&amp;#39;t help me because this is about custom code. Even I didn&amp;#39;t add a single line of code. He told me to ask it here.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Two screenshots:&lt;br /&gt; The standard code, added by InfoPath:&amp;nbsp;&lt;br /&gt;&lt;span style="line-height:1.5;font-size:0.75em;"&gt;&lt;a title="Full image" href="http://virtual-life.net/img/getimg/standard_code.png" target="_blank"&gt;&lt;img alt="" src="http://virtual-life.net/img/getimg/standard_code.png" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The error given by Word 2013:&amp;nbsp;&lt;br /&gt;&lt;a title="Full image" href="http://virtual-life.net/img/getimg/error.png"&gt;&lt;img alt="" src="http://virtual-life.net/img/getimg/error.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>