I am having this problem every time that I try to access the VSTA or through VS; after seeing the new project for the form in question, the designer is unable to render a preview and I get the follwoing message:
"Form template: file:///C:\Users\Samir\Documents\formv2.xsn
InfoPath cannot open the selected form because of an error in the form's code.
Policy settings prevent opening Internet forms with managed code. To fix this problem, contact your system administrator".
Any ideas how to overcome this?
Thanks