Microsoft KB Archive/922125

= Only the &quot;Administrator-approved form template (advanced)&quot; option is available when you publish a browser-compatible form template by using Visual Studio 2005 =

Article ID: 922125

Article Last Modified on 11/3/2006

-

APPLIES TO


 * Microsoft Office Forms Server 2007

-



SYMPTOMS
When you publish a browser-compatible form template by using Microsoft Visual Studio 2005, you experience the following symptoms:  The following information appears in the Publishing Wizard:

An administrator must approve this form template before it can be filled out by using a browser. The template may contain form code, require full trust, be enabled to render on a mobile device, or use a data connection managed by a server administrator.

 The Document Library option and the Site Content Type (advanced) option are unavailable in the Publishing Wizard. These options appear dimmed. In this situation, only the Administrator-approved form template (advanced) option is available.

You experience these symptoms even if you do not include any code in the form template.



CAUSE
This behavior occurs because a Microsoft Visual Studio 2005 Tools for the Microsoft Office System form contains managed code by default. This is because users generally include code in a Visual Studio 2005 Tools for the Office System form.

Note If a form template contains managed code, the Publishing Wizard lets you click only the Administrator-approved form template (advanced) option.



RESOLUTION
To resolve this behavior, remove the code from the form template before you publish the form template. To do this, follow these steps:  Open the Microsoft Office InfoPath 2007 form template by using Visual Studio 2005. On the Tools menu, click Form Options. In the Form Options dialog box, click Programming. Click Remove Code, and then click Yes in the following message:

This will delete all script files and Visual Basic and C# assemblies associated with this form template.

Do you want to continue?

</li> Click OK, and then publish the form template to the Microsoft Office Forms Server 2007 Web site.</li></ol>

<div class="status_section">

STATUS
This behavior is by design.

Keywords: kbexpertisebeginner kbdeployment kbtshoot kbprb KB922125

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.