Hi,
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 I am site collection administrator of the site. Everybody else but me gets this error message (sorry it's in French...) :
Échec de la demande.
à Microsoft.Office.InfoPath.MsxmlNavigator.IsValidNode(MsxmlNode test) à Microsoft.Office.InfoPath.MsxmlNavigator.MoveToFirstChild() à MS.Internal.Xml.XPath.XPathDescendantIterator.MoveNext() à MS.Internal.Xml.XPath.DescendantQuery.Advance() à MS.Internal.Xml.XPath.XPathSelectionIterator.MoveNext() à System.Xml.XPath.XPathNavigator.SelectSingleNode(XPathExpression expression) à System.Xml.XPath.XPathNavigator.SelectSingleNode(String xpath, IXmlNamespaceResolver resolver) à Passage_V_3095_Version_SGP_versionfév2009.FormCode.CTRL162_5_Clicked(Object sender, ClickedEventArgs e) à Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)
à Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)
I have seen many posts about publishing administrator approved templates like this one :
http://www.infopathdev.com/blogs/janice/archive/2009/03/03/administrator-approved-form-templates.aspx
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 "Administrator approved template (Advanced)" in the publishing wizzard even if my form contains managed code.
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 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.
Thank you