<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Publishing a non browser enabled form template with managed code to a sharepoint list</title><link>https://www.infopathdev.com:443/forums/thread/39472.aspx</link><pubDate>Thu, 12 Mar 2009 22:04:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39472</guid><dc:creator>omorency</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39472.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39472</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a form template that I have published to a form library in sharepoint and it worked fine. This form is not browser enabled since it uses some controls not supported by Form Server and it is intended to be used with the InfoPath client. I have added managed code to this form and now I am still able to publish it in Sharepoint as I used to. The only thing is that I am the only one for wich the code executes properly. My guess was that it is because&amp;nbsp;I am site collection administrator of the site. Everybody else&amp;nbsp;but me gets this error message (sorry it&amp;#39;s in French...)&amp;nbsp;: &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;Échec de la demande.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test)&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild()&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à MS.Internal.Xml.XPath.XPathDescendantIterator.MoveNext()&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à MS.Internal.Xml.XPath.DescendantQuery.Advance()&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;à MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext()&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression expression)&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, IXmlNamespaceResolver resolver)&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à Passage_V_3095_Version_SGP_versionfév2009.FormCode.CTRL162_5_Clicked(Object sender, ClickedEventArgs e)&lt;/span&gt;&lt;/font&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;/span&gt;&lt;/font&gt; 
&lt;p class="MsoNormal"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&amp;nbsp; à Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;I have seen many posts about publishing administrator approved templates like this one :&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;&lt;a href="http://www.infopathdev.com/blogs/janice/archive/2009/03/03/administrator-approved-form-templates.aspx"&gt;http://www.infopathdev.com/blogs/janice/archive/2009/03/03/administrator-approved-form-templates.aspx&lt;/a&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;This method as I understand only works for browser enabled templates. I have tried to upload my template in the form template section of sharepoint central administration, but it detects that my template is not browser compatible. I also do not have the option &amp;quot;Administrator approved template (Advanced)&amp;quot; in the publishing wizzard even if my form contains managed code.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;I really need people to be able to use this form with the infopath client and managed code, because they need to modify the form while disconnected from the server (With the template in their InfoPath cache). And it also needs to be published in a SharePoint form library beacause it is part of&amp;nbsp;a Sharepoint Workflow. So far, everything was working fine before I putted the managed code, I am sure I need it to do what I need to do.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="FONT-SIZE:10pt;FONT-FAMILY:Arial;"&gt;&amp;nbsp;Thank you&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>