I have a strange problem. I have created an infopath form with full trust and my own digital signature. I am acessing SQL database and exporting data to Excel on button click. This whole process works perfectly fine if I run it in debug mode. But somehow, when in preview mode, the button event is not firing and the expect SQL execution/excel export does not take place!!!
Does anyone know why this happens and how to solve the issue??
(I have given SQL permissions in the web.config file for wss.minimal trust in config file)