Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all ,
I publish a form with info path 2007. I put a security level >> domain when i use this code and run it:
VB
Dim mainDomNavigator As XPathNavigator = Me.MainDataSource.CreateNavigator()
Dim userNavigator As XPathNavigator = mainDomNavigator.SelectSingleNode("/my:myFields/my:field1", Me.NamespaceManager)
userNavigator.SetValue("My Test")


It throws a SecurityException that say "check to make sure you have fulfilled all necessary security requirements" and "Use a certificate to obtain the required permission" and "if an assembly implementing the custom security object reference other assemblies, add the reference assemblies to the full trust assembly list"

The exception appear when i use Xpath.
Can any one help me? :rose:
Posted
Updated 4-May-10 20:32pm
v2

Have a look at this article:
Hosting InfoPath 2007 in a WinForms Application[^]
 
Share this answer
 
C++
i see the link 



its not helpful



can any one help me ,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900