为 SharePoint 2013 配置 Office Web AppsConfigure Office Web Apps for SharePoint 2013

 

适用于: SharePoint Server 2013、SharePoint Foundation 2013、Office Web AppsApplies to: SharePoint Server 2013, SharePoint Foundation 2013, Office Web Apps

摘要: 介绍如何将 SharePoint 2013 配置为使用 Office Web Apps。Summary: Explains how to configure SharePoint 2013 to use Office Web Apps.

目标用户: IT 专业人员Audience: IT Professionals

本文将介绍如何将Office Web Apps Server保留为离开状态。This article picks up where Deploy Office Web Apps Server left off. 在这篇文章中, 您设置了运行 Office Web Apps Server 的服务器。In that article, you set up the server that runs Office Web Apps Server. 在这种情况下, 您将配置 SharePoint 2013 以使用 Office Web Apps Server。In this one, you’ll configure SharePoint 2013 to use Office Web Apps Server. 首先, 你需要从 SharePoint 2013 运行几个 Windows PowerShell cmdlet, 之后用户将能够在浏览器中从 SharePoint 2013 文档库中打开 Office 文件。First, you’ll need to run a few Windows PowerShell cmdlets from SharePoint 2013, after which users will be able to open Office files from SharePoint 2013 document libraries in a browser.

如果你不熟悉 Office Web Apps Server 的功能, 请查看概述主题If you’re not familiar with the features of Office Web Apps Server, check out the overview topic.

本文内容:In this article:

  • 在将 SharePoint 2013 配置为使用 Office Web Apps Server 之前Before configuring SharePoint 2013 to use Office Web Apps Server

  • 将 SharePoint 2013 配置为使用 Office Web Apps ServerConfigure SharePoint 2013 to use Office Web Apps Server

  • 对与 SharePoint 2013 结合使用时 Office Web Apps 中的错误进行故障排除Troubleshoot errors in Office Web Apps when it is used with SharePoint 2013

  • 从 Office Web Apps Server 断开连接到 SharePoint 2013Disconnect SharePoint 2013 from Office Web Apps Server

在将 SharePoint 2013 配置为使用 Office Web Apps Server 之前Before you configure SharePoint 2013 to use Office Web Apps Server

在开始之前检查几个事项:A few things to check before getting started:

  • 安装 SharePoint 2013。Install SharePoint 2013. 请参阅安装 SharePoint 2013 for 指南。See Install SharePoint 2013 for guidance.

  • 请确保所有 SharePoint 2013 web 应用程序都使用基于声明的身份验证。Make sure all SharePoint 2013 web applications use claims-based authentication. Office Web Apps 呈现和编辑不能在使用经典模式身份验证的 SharePoint 2013 Web 应用程序上运行。Office Web Apps rendering and editing won’t work on SharePoint 2013 web applications that use classic mode authentication. 有关详细信息, 请在 Office Web Apps 的 SharePoint 身份验证要求中了解详细信息。Learn more in SharePoint authentication requirements for Office Web Apps.

  • 若要使用户能够在 web 浏览器中编辑 (而不只是读取) Office 文档, 您需要一个编辑许可证。To enable users to edit (not just read) Office documents in a web browser, you’ll need an editing license. 此外, 还需要在 Office Web Apps Server 场上启用编辑。Also, you’ll need to enable editing on the Office Web Apps Server farm. 您可以在授权 Office Web Apps for office 文件的编辑中了解有关许可要求的详细信息。You can learn more about licensing requirements in Licensing Office Web Apps for editing Office files.

  • 如果使用系统帐户登录到 SharePoint 2013, 将无法测试 SharePoint 2013 与 Office Web Apps Server 之间的连接。If you log on to SharePoint 2013 by using the System Account, you won’t be able to test the connection between SharePoint 2013 and Office Web Apps Server. 使用其他帐户登录,以测试连接。Log on with a different account to test the connection.

  • 内存不足的情况可能会导致 office Web Apps 中的 Office 文档预览失败。Low memory conditions can cause Office document previews to fail in Office Web Apps. 查看适用于 SharePoint 2013 的文章、硬件要求、web 服务器、应用程序服务器和单台服务器安装Review the article, Hardware requirements—web servers, application servers, and single server installations, for SharePoint 2013. 这些要求与 Office Web Apps Server 使用的要求相同。These are the same requirements used by Office Web Apps Server.

将 SharePoint 2013 配置为使用 Office Web Apps ServerConfigure SharePoint 2013 to use Office Web Apps Server

选择下列章节之一,具体取决于您要使用 HTTP 还是 HTTPS。HTTP 通常仅建议用于测试环境。在生产环境中,最好使用更为安全的 HTTPS 协议。Choose one of the following sections depending on whether you want to use HTTP or HTTPS. HTTP is generally recommended only for test environments. In production environments, the more secure HTTPS protocol is the better choice.

在使用 HTTP 的测试环境中In a test environment that uses HTTP

对于此配置, 请确保已按照在测试环境中部署单服务器 Office Web Apps server 场中的步骤设置 Office Web apps server。For this configuration, make sure you have set up Office Web Apps Server by following the steps in Deploy a single-server Office Web Apps Server farm in a test environment. 请务必将 Office Web Apps Server 场配置为使用内部 URL 和 HTTP。Be sure to configure the Office Web Apps Server farm to use an internal URL and HTTP. 视频: Configure Office Web apps For SharePoint 2013说明如何在测试环境中设置 office Web apps server 并将 SharePoint 2013 配置为使用 Office Web apps server。The Video: Configure Office Web Apps for SharePoint 2013 shows how to set up Office Web Apps Server and configure SharePoint 2013 to use Office Web Apps Server in a test environment.

步骤 1: 打开提升的 SharePoint 2013 命令行管理程序Step 1: Open an elevated SharePoint 2013 Management Shell

选择与您的服务器操作系统对应的过程。Choose the procedure that corresponds to your server operating system.

在 Windows Server 2008 R2 中In Windows Server 2008 R2

  1. 单击 "启动 > Microsoft SharePoint 2013 产品所有程序 > "。Click Start > All Programs > Microsoft SharePoint 2013 Products.

  2. 右键单击 " SharePoint 2013 命令行管理程序", 然后单击 "以管理员身份运行"。Right-click SharePoint 2013 Management Shell, and click Run as administrator.

在 Windows Server 2012 中打开In Windows Server 2012

  1. 按 Windows 徽标键 + Q, 或者从屏幕边缘向内轻扫以显示超级按钮, 然后单击 "搜索" 以查看计算机上安装的所有应用程序。Press the Windows logo key + Q, or swipe in from the edge of the screen to show the charms, and then click Search to see all the applications that are installed on the computer.

  2. 右键单击 " SharePoint 2013 命令行管理程序" 以显示应用程序栏。Right-click SharePoint 2013 Management Shell to display the app bar.

  3. 在应用栏中, 单击 "以管理员身份运行"。In the app bar, click Run as administrator.

步骤 2: 创建 SharePoint 2013 与 Office Web Apps Server 之间的绑定Step 2: Create the binding between SharePoint 2013 and Office Web Apps Server

运行以下命令, 其中<WacServerName>是您为内部 URL 设置的 URL 的完全限定域名 (FQDN)。Run the following command, where <WacServerName> is the fully qualified domain name (FQDN) of the URL that you set for the internal URL. 这是 Office Web Apps Server 通信的入口点。This is the point of entry for Office Web Apps Server traffic. 对于此测试环境, 您需要指定– AllowHTTP 参数, 以允许 SharePoint 2013 通过使用 HTTP 从 Office Web Apps Server 场接收发现信息。For this test environment, you need to specify the –AllowHTTP parameter to allow SharePoint 2013 to receive discovery information from the Office Web Apps Server farm by using HTTP. 如果不指定– AllowHTTP, SharePoint 2013 将尝试使用 HTTPS 与 Office Web Apps Server 场进行通信, 并且此命令将不起作用。If you don’t specify –AllowHTTP, SharePoint 2013 will try to use HTTPS to communicate with the Office Web Apps Server farm, and this command won’t work.

    New-SPWOPIBinding -ServerName <WacServerName> -AllowHTTP

运行此命令后, 您应该会看到在 Windows PowerShell 命令提示符处显示的绑定列表。After running this command, you should see a list of bindings displayed at the Windows PowerShell command prompt.

是否需要帮助?Need help? 请参阅remove-spwopibindingSee New-SPWOPIBinding.

步骤 3: 查看 SharePoint 绑定的 WOPI 区域Step 3: View the WOPI zones for the SharePoint bindings

Office Web Apps Server 使用区域来确定在与主机通信时使用的 URL (内部或外部) 以及要使用的协议 (HTTP 或 HTTPS), 在此示例中为 SharePoint 2013。Office Web Apps Server uses zones to determine which URL (internal or external) and which protocol (HTTP or HTTPS) to use when it communicates with the host, in this case, SharePoint 2013. 默认情况下, SharePoint Server 2013 使用内部 https区域。By default, SharePoint Server 2013 uses the internal-https zone. 通过运行以下命令来确认这是当前区域:Run the following command to see what your current zone is.

    Get-SPWOPIZone

此命令显示的 WOPI 区域应为internal-httpThe WOPI zone displayed by this command should be internal-http. 如果显示正确, 请跳到步骤5。If it’s displayed correctly, skip to step 5. 如果不是, 请参阅下一步。If it isn’t, see the next step.

是否需要帮助?Need help? 请参阅get-spwopizoneSee Get-SPWOPIZone.

步骤 4: 将 WOPI 区域更改为内部 httpStep 4: Change the WOPI zone to internal-http

如果通过执行步骤 3 获得的结果为 internal-https,则运行以下命令可将区域更改为 internal-httpIf the result from Step 3 was internal-https, run the following command to change the zone to internal-http. 您需要进行此更改, 因为 SharePoint 2013 的区域必须与 Office Web Apps Server 场的区域相匹配。You need to make this change because the zone of SharePoint 2013 must match the zone of the Office Web Apps Server farm.

    Set-SPWOPIZone -zone "internal-http"

再次运行 Get-SPWOPIZone ,确认新的区域为 internal-httpVerify that the new zone is internal-http by running Get-SPWOPIZone again.

是否需要帮助?Need help? 请参阅get-spwopizoneget-spwopizoneSee Set-SPWOPIZone and Get-SPWOPIZone.

步骤 5: 将 SharePoint 2013 中的 AllowOAuthOverHttp 设置更改为 TrueStep 5: Change the AllowOAuthOverHttp setting in SharePoint 2013 to True

若要在测试环境中将 Office Web Apps 与基于 HTTP 的 2013 SharePoint 结合使用, 您需要将 AllowOAuthOverHttp 设置为 True。To use Office Web Apps with SharePoint 2013 over HTTP in a test environment, you need to set AllowOAuthOverHttp to True. 否则, Office Web Apps 将不起作用。Otherwise Office Web Apps won’t work. 可通过运行以下示例来检查当前状态:You can check the current status by running the following example.

    (Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

如果此命令返回 False,则运行下列命令可将其设置为 TrueIf this command returns False, run the following commands to set this to True.

    $config = (Get-SPSecurityTokenServiceConfig)
    $config.AllowOAuthOverHttp = $true
    $config.Update()

再次运行以下命令来验证 AllowOAuthOverHttp 设置现在是否设置为 TrueRun the following command again to verify that the AllowOAuthOverHttp setting is now set to True.

    (Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

是否需要帮助?Need help? 请参阅get-spsecuritytokenserviceconfigSee Get-SPSecurityTokenServiceConfig.

步骤 6:验证 Office Web Apps 是否正常运行Step 6: Verify that Office Web Apps is working

在 SharePoint 2013 中, 请确保您没有以系统帐户身份登录, 因为您无法使用 Office Web Apps 编辑或查看文档。In SharePoint 2013, make sure you’re not logged on as System Account because you won’t be able to edit or view the documents with Office Web Apps. 转到包含 Office 文档的 SharePoint 2013 文档库并查看 Word、PowerPoint、Excel 或 OneNote 文件。Go to a SharePoint 2013 document library that contains Office documents and view a Word, PowerPoint, Excel, or OneNote file. 文档应在使用 Office Web Apps 显示文件的浏览器中打开。The document should open in a browser that displays the file by using Office Web Apps.

如果此步骤失败, 请参阅排查 Office Web Apps 中的错误。If this step fails, see Troubleshooting errors in Office Web Apps.

在使用 HTTPS 的生产环境中In a production environment that uses HTTPS

在开始以下过程之前, 请确保已按照以下步骤设置 Office Web Apps Server:部署使用 HTTPS 的单服务器 Office Web Apps server 场中的步骤或部署多服务器的负载平衡 Office web apps 服务器使用 HTTPS 的服务器场Before you start the following procedures, make sure that you have set up Office Web Apps Server by following the steps in Deploy a single-server Office Web Apps Server farm that uses HTTPS or Deploy a multi-server, load-balanced Office Web Apps Server farm that uses HTTPS.

步骤 1: 打开 SharePoint 2013 命令行管理程序Step 1: Open the SharePoint 2013 Management Shell

选择与您的服务器操作系统对应的过程。Choose the procedure that corresponds to your server operating system.

在 Windows Server 2008 R2 中In Windows Server 2008 R2

  1. 选择 "启动 > 所有程序 > " " Microsoft SharePoint 2013 产品"。Select Start > All Programs > Microsoft SharePoint 2013 Products.

  2. 右键单击 " SharePoint 2013 命令行管理程序" 以显示快捷菜单, 然后单击 "以管理员身份运行"。Right-click SharePoint 2013 Management Shell to display the shortcut menu, and click Run as administrator.

在 Windows Server 2012 中打开In Windows Server 2012

  1. 按 Windows 徽标键 + Q, 或者从屏幕边缘向下轻扫以显示超级按钮, 然后单击 "搜索" 以查看计算机上安装的所有应用程序。Press the Windows logo key + Q, or swipe in from the edge of the screen to show the charms and then click Search to see all the applications that are installed on the computer.

  2. 右键单击 " SharePoint 2013 命令行管理程序" 以显示应用程序栏。Right-click SharePoint 2013 Management Shell to display the app bar.

  3. 在应用栏中, 单击 "以管理员身份运行"。In the app bar, click Run as administrator.

步骤 2: 创建 SharePoint 2013 与 Office Web Apps Server 之间的绑定Step 2: Create the binding between SharePoint 2013 and Office Web Apps Server

运行以下命令, 其中<WacServerName>是您为内部 URL 设置的 URL 的完全限定域名 (FQDN)。Run the following command, where <WacServerName> is the fully qualified domain name (FQDN) of the URL that you set for the internal URL. 这是 Office Web Apps Server 通信的入口点。This is the point of entry for Office Web Apps Server traffic.

    New-SPWOPIBinding -ServerName <WacServerName> 

是否需要帮助?Need help? 请参阅remove-spwopibindingSee New-SPWOPIBinding.

步骤 3: 查看 SharePoint 2013 的 WOPI 区域Step 3: View the WOPI zone of SharePoint 2013

Office Web Apps Server 使用区域来确定在与主机通信时要使用的 URL (内部或外部) 以及要使用的协议 (HTTP 或 HTTPS), 在此示例中为 SharePoint 2013。Office Web Apps Server uses zones to determine which URL (internal or external) and which protocol (HTTP or HTTPS) to use when it communicates with the host, which in this case is SharePoint 2013. 默认情况下, SharePoint Server 2013 使用内部 https区域。By default, SharePoint Server 2013 uses the internal-https zone. 通过运行以下命令来确认这是当前区域。Verify that this is the current zone by running the following command.

    Get-SPWOPIZone

请记下显示的 WOPI 区域。Take note of the WOPI zone that is displayed.

是否需要帮助?Need help? 请参阅get-spwopizoneSee Get-SPWOPIZone.

步骤 4: 根据需要更改 WOPI 区域Step 4: Change the WOPI zone if necessary

根据您的环境,您可能需要更改 WOPI 区域。如果您有一个既为内部又为外部的 SharePoint 场,则指定外部。如果您有一个仅内部的 SharePoint 场,则指定内部。Depending on your environment, you might have to change the WOPI zone. If you have a SharePoint farm that's both internal and external, specify external. If you have a SharePoint farm that's internal only, specify internal.

如果步骤3中的结果显示: internal和 SharePoint 场仅限内部, 则可以跳过此步骤。If the results from Step 3 show that internal-https and the SharePoint farm is internal only, you can skip this step. 如果您具有内部和外部 SharePoint 服务器场, 则需要运行以下命令将区域更改为external-httpsIf you have a SharePoint farm that’s internal and external, you need to run the following command to change the zone to external-https.

    Set-SPWOPIZone -zone "external-https"

是否需要帮助?Need help? 请参阅get-spwopizoneSee Set-SPWOPIZone.

步骤 5:验证 Office Web Apps 是否正常运行Step 5: Verify that Office Web Apps is working

在 SharePoint 2013 中, 请确保您没有以系统帐户身份登录, 因为您无法使用 Office Web Apps 编辑或查看文档。In SharePoint 2013, make sure you aren’t logged on as System Account because you won’t be able to edit or view the documents with Office Web Apps. 转到包含 Office 文档的 SharePoint 2013 文档库并查看 Word、PowerPoint、Excel 或 OneNote 文件。Go to a SharePoint 2013 document library that contains Office documents and view a Word, PowerPoint, Excel, or OneNote file. 文档应在使用 Office Web Apps 显示文件的浏览器中打开。The document should open in a browser that displays the file by using Office Web Apps.

如果此步骤失败, 请参阅排查 Office Web Apps 中的错误。If this step fails, see Troubleshooting errors in Office Web Apps.

对与 SharePoint 2013 结合使用时 Office Web Apps 中的错误进行故障排除Troubleshoot errors in Office Web Apps when it is used with SharePoint 2013

如果 Office Web Apps 在与 SharePoint 2013 一起使用时无法正常运行, 请找到下面的症状并展开标题以查找故障排除步骤。If Office Web Apps isn’t working correctly when it is used together with SharePoint 2013, locate the symptom below and expand the heading to find troubleshooting steps.

下面是一些要尝试的故障排除选项。Here are some troubleshooting options to try.

验证用于创建新文档的 SharePoint web 应用程序是否使用基于声明的身份验证Verify that claims-based authentication is used by the SharePoint web application that is used to create the new document

只有使用基于声明的身份验证的 web 应用程序才能打开 Office Web Apps 中的文件。Only web applications that use claims-based authentication can open files in Office Web Apps. 若要确定 web 应用程序的身份验证提供程序, 请按照以下步骤操作:To determine the authentication provider for a web application, follow these steps:

  1. 在 "SharePoint 2013 管理中心" 中, 单击 "管理 web 应用程序"。In SharePoint 2013 Central Administration, click Manage web applications.

  2. 选择要检查的 web 应用程序, 然后单击功能区上的 "身份验证提供程序"。Select the web application that you want to check, and click Authentication Providers on the ribbon.

身份验证提供程序必须显示为 Office Web Apps 的基于声明的身份验证, 才能在 Web 应用程序中正常运行。The authentication provider must be displayed as Claims Based Authentication for Office Web Apps to work correctly with the web application. 若要解决此问题, 您可以删除 web 应用程序, 并使用基于声明的身份验证重新创建它, 也可以更改 web 应用程序的身份验证方法。To resolve this issue, you can delete the web application and recreate it using claims-based authentication, or you can change the authentication method of the web application. 你可以在Office Web Apps 的 SharePoint 身份验证要求中查找详细信息。You can find more information in SharePoint authentication requirements for Office Web Apps.

请确保在 SharePoint 2013 和 Office Web Apps Server 场中匹配 WOPI 区域。Make sure the WOPI zones match on the SharePoint 2013 and the Office Web Apps Server farm.

若要执行此操作, 请在 SharePoint 服务器上运行以下命令:To do this, run the following command on the SharePoint Server:

    Get-SPWopiZone 

结果将为下列情况之一:The result will be one of the following:.

  • internal-httpsinternal-https

  • 内部-httpinternal-http

  • external-httpsexternal-https

  • 外部 httpexternal-http

接下来, 在 SharePoint 服务器上运行以下命令。Next, run the following command on the SharePoint Server.

    Get-SPWOPIBinding

在输出中, 查找 " WopiZone: zone"。In the output, look for WopiZone: zone. 如果 Get-spwopizone 中的结果与 Remove-spwopibinding 返回的区域不匹配, 请在 SharePoint 服务器上运行get-spwopizone-zone cmdlet, 以将 WOPI 区域更改为与 remove-spwopibinding 中的结果相匹配。If the results from Get-SPWopiZone don’t match the zone that is returned by Get-SPWOPIBinding, run the Set-SPWOPIZone -Zone cmdlet on the SharePoint Server to change the WOPI zone to match the result from Get-SPWOPIBinding. 有关使用这些 cmdlet 的帮助, 请参阅remove-spwopibindingremove-spwopibindingget-spwopizoneFor help with using these cmdlets, see Get-SPWOPIBinding, Set-SPWOPIBinding, and Get-SPWOPIZone.

问题: 当您尝试在 Office Web Apps 中编辑 Office 文档时, 收到 "抱歉, 无法打开此文档进行编辑" 的错误。Problem: You receive a “Sorry, this document can’t be opened for editing” error when you try to edit an Office document in Office Web Apps.

在某些情况下, 作为 Active Directory (AD) 安全组成员的用户可能无法在浏览器中编辑文档。In some situations, users that are members of Active Directory (AD) Security Groups may be unable to edit documents in the browser. 解决方案是确保已正确配置 User Profile Service 应用程序 (UPA) 并将其与用户和组成员身份完全同步。The solution is to ensure the User Profile Service Application (UPA) is properly configured and fully synchronized with user and group memberships. 有关详细信息, 请参阅知识库文章SharePoint 2013 无法使用作为安全组成员的用户编辑 Office Web Apps 2013 文件For more information, see the KB article SharePoint 2013 Unable to edit Office Web Apps 2013 files with users that are members of security groups.

问题: 当您尝试在 Office Web Apps 中查看 Office 文档时, 收到 "抱歉, 出现了问题" 错误。Problem: You receive a "Sorry, something went wrong" error when you try to view an Office document in Office Web Apps.

请确保您没有以系统帐户身份登录, 因为您无法编辑或查看文档。Make sure you’re not logged in as System Account because you won’t be able to edit or view a document. 以其他用户的的形式登录, 然后尝试再次访问 Office Web Apps。Log on as a different user and try to access Office Web Apps again.

问题: 当您尝试在 Office Web Apps 中查看 Office 文档时, 收到 "抱歉, 出现了问题, 无法打开此文档" 错误。Problem: You receive a "Sorry, there was a problem and we can't open this document" error when you try to view an Office document in Office Web Apps.

如果您在使用 HTTP 的测试环境中设置 Office Web Apps, 请确保将 AllowOAuthOverHttp 设置设置为true , 如步骤 5: 将 SharePoint 2013 中的 AllowOAuthOverHttp 设置更改为 true 中所述。If you set up Office Web Apps in a test environment that uses HTTP, make sure you set the AllowOAuthOverHttp setting to True as described in Step 5: Change the AllowOAuthOverHttp setting in SharePoint 2013 to True.

如果您使用OfficeWebAppsHost cmdlet 将域添加到允许列表中, 请确保您正在从允许列表中的主机域访问 Office Web Apps。If you added domains to the Allow List by using the New-OfficeWebAppsHost cmdlet, make sure you’re accessing Office Web Apps from a host domain that’s in the Allow List. 若要查看 "允许" 列表中的主机域, 请在 Office Web Apps Server 上以管理员身份打开 Windows PowerShell 提示符, 然后运行OfficeWebAppsHost cmdlet。To view the host domains in the Allow List, on the Office Web Apps Server open the Windows PowerShell prompt as an administrator and run the Get-OfficeWebAppsHost cmdlet. 若要将域添加到允许列表中, 请使用OfficeWebAppsHost cmdlet。To add a domain to the Allow List, use the New-OfficeWebAppsHost cmdlet.

问题: 你收到 "抱歉, Word Web App 无法打开此文档, 因为服务正忙。Problem: You receive a "Sorry, Word Web App can't open this document because the service is busy. 尝试在 Office Web Apps 中查看 Office 文档时, 请稍后重试 "错误"。Please try again later" error when you try to view an Office document in Office Web Apps.

  • 是否有机会在域控制器上安装 Office Web Apps Server?Did you install Office Web Apps Server on a domain controller, by chance? 遗憾的是, Office Web Apps Server 无法在域控制器上运行。Unfortunately, Office Web Apps Server can’t run on a domain controller. 必须将 Office Web Apps Server 安装在属于域的单独服务器上。Office Web Apps Server must be installed on a separate server that’s part of a domain. 有关详细信息, 请参阅Office Web Apps Server 的软件、硬件和配置要求For more information, see Software, hardware, and configuration requirements for Office Web Apps Server.

  • 请确保您运行的是 SharePoint 2013 build 15.0.4420.1017 或更高版本。Make sure you’re running SharePoint 2013 build 15.0.4420.1017 or later. 在 SharePoint 2013 服务器上, 按照以下步骤验证内部版本号:On the SharePoint 2013 server, follow these steps to verify the build number:

    1. 转到 "开始 > 所有程序 > "。 Microsoft SharePoint 2013 Products > SharePoint 2013 管理中心Go to Start > All Programs > Microsoft SharePoint 2013 Products > SharePoint 2013 Central Administration.

    2. 选择 "系统设置 > " "管理此服务器场中的服务器"Choose System Settings > Manage servers in this farm.

    验证配置数据库版本15.0.4420.1017还是更高版本。Verify the Configuration database version is 15.0.4420.1017 or higher. 如果没有, 请转到office、office 服务器和相关产品的更新中心, 了解详细信息。If not, go to the Update center for Office, Office servers, and related products for more information.

问题: 您收到 "找不到文件。Problem: You receive a "File Not Found. 原始文件的 URL 无效或文档不可公开访问。The URL of the original file is not valid or the document is not publicly accessible. 验证 URL 是否正确, 然后在尝试使用用户生成的 URL 在 Office Web Apps 中查看 Office 文档时, 联系文档所有者 "错误"。Verify the URL is correct, then contact the document owner" error when you try to view an Office document in Office Web Apps by using a user generated URL.

您是否正在尝试从用户生成的 URL 打开文件大小大于 10 mb 的文档?Are you trying to open a document that has a file size that is larger than 10 megabytes from a user generated URL? 请确保文档不超过 10 mb。Make sure the document doesn’t exceed 10 megabytes.

问题: Office 文档的预览不会显示在 SharePoint 2013 中。Problem: Previews of Office documents don't appear in SharePoint 2013. 而是显示 "此内容无法在框架中显示" 错误。Instead, they show the "This content cannot be displayed in a frame" error.

内存不足的情况可能会导致 Office 文档预览出现问题。Low memory conditions can cause problems with Office document previews. 查看硬件要求-web 服务器、应用程序服务器和单台服务器安装, 以查看 SharePoint 2013 的内存要求。Take a look at the Hardware requirements—web servers, application servers, and single server installations to see the memory requirements for SharePoint 2013. 这些要求与 Office Web Apps Server 使用的要求相同。These are the same requirements used by Office Web Apps Server.

问题: 您收到 "数据连接设置为始终使用连接文件, 而 {0: ExcelWebApp} 不支持外部连接文件。Problem: You receive “A data connection is set to always use connection file and {0:ExcelWebApp} does not support external connection files. 以下连接刷新失败: 数据连接 "错误。The following connection failed to refresh: Data connections” error.

出现这种情况的原因是 Office Web Apps Server 不支持存储数据连接信息的 Office 数据连接 (ODC) 文件。This happens because Office Web Apps Server doesn’t support the Office Data Connection (ODC) file that stores the data connection information. 若要解决此问题, 请按照下列步骤操作:To fix this problem, follow these steps:

  1. 在 Excel 客户端应用程序中打开工作簿。Open the workbook in an Excel client application.

  2. 单击 "数据 > 连接"。Click Data > Connections.

  3. 选择消息中列出的数据连接, 然后单击 "属性"。Select the data connections listed in the message, and click Properties.

  4. 单击 "定义" 选项卡。Click the Definition tab.

  5. 清除复选框的 "始终使用连接文件" 复选框Clear the Always use connection file check box for check box.

  6. 将工作簿重新上载到 SharePoint 文档库。Re-upload the workbook to the SharePoint document library.

若要使用户能够与浏览器窗口中包含数据模型或 Power View 视图的工作簿进行交互, 请在 SharePoint Server 中配置 Excel Services 以显示工作簿。To enable people to interact with workbooks that contain a Data Model or Power View views in a browser window, configure Excel Services in SharePoint Server to display workbooks. 这需要 SharePoint 管理员在安装了 SharePoint Server 的服务器上运行 SPWOPISupressionSetting cmdlet。This requires a SharePoint administrator to run the New-SPWOPISupressionSetting cmdlet on the server where SharePoint Server is installed. 有关详细信息, 请参阅new-spwopisuppressionsetting管理 Excel Services in SharePoint Server 2013For more information, see New-SPWOPISuppressionSetting and Administer Excel Services in SharePoint Server 2013.

从 Office Web Apps Server 断开连接到 SharePoint 2013Disconnect SharePoint 2013 from Office Web Apps Server

如果出于任何原因需要将 SharePoint 2013 从 Office Web Apps Server 断开连接, 请使用以下命令示例。If, for any reason, you want to disconnect SharePoint 2013 from Office Web Apps Server, use the following command example.

    Remove-SPWOPIBinding -All:$true

是否需要帮助?Need help? 请参阅remove-spwopibindingSee Remove-SPWOPIBinding.

另请参阅See also

New-SPWOPIBindingNew-SPWOPIBinding
Set-SPWOPIZoneSet-SPWOPIZone

Office Web Apps Server 内容指南Content roadmap for Office Web Apps Server
部署 Office Web Apps ServerDeploy Office Web Apps Server