I have a template (driving), which when various criteria are filled in, will go away and open other forms (secondary) and edit the data in them.
I have had this working before but I have obviously changed something to make it not work.
The secondary forms open but when I try to create an xpath navigator on the secondary form I get this system.unauthorized access exception.
Both the driving template and the secondary template are signed and published (by me) as content types to the same SharePoint library.
The driving template is published with "Automatically determine" security level and the secondary template is published fully trusted.
I notice that when running in debug opening the secondary form prompts for the InfoPathSecuityNotice(attached) - the location of the xsn is not anything I recognise - but the form opens as expected.
I am using VB.
returnValue =
Me.Application.XmlForms.Open(filelocation, behavior) - runs ok
testnode = returnValue.MainDataSource.CreateNavigator.SelectSingleNode(testxpath, returnValue.NamespaceManager) - fails...