In the Designer, go to Tools->Form Options->Security. Deselect Automatic and select Full Trust. You'll have to either sign the form or run regform to create an msi. To sign the form, create a digital signature on the same dialog and attach it. To run regform, download the InfoPath SDK and type regform -? for instructions.
Patrick Halstead
Project Manager at Qdabra