Cannot Preview a form with qRules? - Ernesto Machado

InfoPath Dev

Ernesto Machado

Cannot Preview a form with qRules?

After injecting an InfoPath form with qRules, you might be unable to open the XSN in the designer and then Preview. The error indicates:

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.

We have seen this error:

  • on machines that are not joined to a domain
  • after performing an Internet Explorer upgrade, since these updates might reset your settings.

If you are seeing this error, there are two possible fixes to consider.

A. Modify the Internet Explorer security option causing the issue:

1.    Launch Internet Explorer.
2.    Click the Tools button, and then click Internet Options.
3.    On the Security tab of the Internet Options dialog box, select the Local Intranet zone, and then click Sites.
4.    In the Local Intranet dialog box, clear the Automatically Detect Intranet Network check.
5.    Select all other check boxes.


6.    Click OK twice.
7.    Preview your form.

B. If you are unable to use the solution above, specify a preview domain in the Form Options dialog box of your form template. This forces InfoPath to believe that the form is being opened in the specified domain. The form must be set to Domain Trust for this option to work.

1.    Launch Internet Explorer.
2.    Click the Tools button, and then click Internet Options.
3.    In the Security tab, select the Local Intranet zone, click Sites, and then click Advanced.
4.    Add (or ensure that you've already added) the website to the domain you will use for previewing.
5.    Click Close, and then click OK twice.
6.    Open your InfoPath form in Design mode.
7.    Choose Form Options from the Tools menu.
8.    Select the Preview category.
9.    In the Domain text box, type the website that you added to the Internet Explorer Local Intranet Websites.
10.    Click OK.
11.    Preview your form.

Published Sep 15 2011, 07:58 PM by ErnestoM
Filed under:



waleed7 said:

very nice


December 17, 2011 4:53 AM » Sharepoint 2010 useful links said:

Pingback from  » Sharepoint 2010 useful links

January 19, 2012 10:25 PM
Copyright © 2003-2018 Qdabra Software. All rights reserved.
View our Terms of Use.