I'm upgrading a form from InfoPath 2003 to 2007 and adding new functionality. The form uses C# code behind, and I'm currently using VS 2008. The form has to run with Domain security. It cannot run with Full Trust
When pulling values from datasources in 2003, this worked code worked fine:
thisXDocument.DOM.selectSingleNode("/my:myFields/my:message").text
However when I try this in 2007:
MainDataSource.CreateNavigator().SelectSingleNode(
"/my:myFields/my:message", NamespaceManager).Value
I'm getting a security error. I can get it to work in preview mode only when setting the security to Full Trust, but this is not an option in production.
Am I missing something? I can't imagine that InfoPath 2007 requires full trust just to pull values from the form's DOM.