未設定 State Service 連線,導致無法在網頁瀏覽器中填寫 InfoPath Forms Services 表單 (SharePoint Server)InfoPath Forms Services forms cannot be filled out in a Web browser because no State Service connection is configured (SharePoint Server)

摘要: 了解如何解決 SharePoint Server 2016 和 SharePoint 2013 中 SharePoint Health Analyzer 規則「InfoPath Forms Services 表單無法在網頁瀏覽器中填寫,因為未設定 State Service 連線」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "InfoPath Forms Services forms cannot be filled out in a Web browser because no State Service connection is configured", in SharePoint Server 2016 and SharePoint 2013.

規則名稱: InfoPath Forms Services 表單無法在網頁瀏覽器中填寫,因為未設定 State Service 連線。Rule Name: InfoPath Forms Services forms cannot be filled out in a Web browser because no State Service connection is configured.

摘要: InfoPath Forms Services 依賴 Web 應用程式具有 State Service Proxy 的服務連線,才可以儲存不同 HTTP 要求的資料。如果沒有服務連線,使用者將無法成功開啟或填寫供瀏覽器使用的 InfoPath 表單。Summary: InfoPath Forms Services depends on the Web application having a service connection to a State Service Proxy to store data across HTTP requests. Without a service connection, users cannot successfully open or fill browser-enabled InfoPath forms.

原因: 狀況分析器警示中的 Web 應用程式未設定 State Service 的服務連線。Cause: No service connection for the State Service is configured for the Web application that is in the Health Analyzer alert.

解決方案: 使用 SharePoint 管理中心網站 設定服務連線Resolution: Configure a service connection by using the SharePoint Central Administration website

  1. 確認執行此程序的使用者帳戶為伺服器陣列管理員群組的成員。Verify that the user account performing this procedure is a member of the Farm Administrators group.

  2. 如果狀態服務已經存在,您必須使狀態服務與 Health Analyzer 規則所述的 Web 應用程式相關聯。If a State Service already exists, you must associated the State Service with the Web application mentioned tin the health analyzer rule.

  3. 在管理中心中,按一下 [應用程式管理]**** 下的 [管理服務應用程式]*In Central Administration, in the *Application Management section, click Manage web applications.

  4. 在 [Web 應用程式] 頁面上,按一下您要設定服務連線的 Web 應用程式,然後再按一下功能區上的 [服務連線]*On the Web Applications page, click the Web application for which you want to configure a service connection, and then click *Service Connections on the ribbon.

  5. 在 [設定服務應用程式關聯]**** 對話方塊中,確定已選取 [State Service]**** 核取方塊,然後按一下 [確定]*In the *Configure Service Application Associations dialog box, ensure that the State Service check box is selected, and then click OK.

使用 Microsoft PowerShell 建立新的狀態服務應用程式Create a new State Service application by using Microsoft PowerShell

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the PowerShell cmdlets.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint 2013 產品 Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 Products cmdlets.

      注意

      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 在 PowerShell 命令提示字元中,輸入下列命令:At the PowerShell command prompt, type the following command:

    New-SPStateServiceDatabase -Name "State Service Database" | New-SPStateServiceApplication -Name "StateServiceApp1" | New-SPStateServiceApplicationProxy -DefaultProxyGroup
    

    如需詳細資訊,請參閱 New-SPStateServiceApplicationFor more information, see New-SPStateServiceApplication.