Try the following:
Change the security level on the InfoPath template
Go to Tools -> Form Options -> Security and Trust
Clear the checkbox “Automatically determine security level(recomended)”
Select the radio button “Full trust”
Hope it works