转自http://www.cnblogs.com/awpatp/archive/2013/06/06/3121420.html, 仅供自己查看

笔者尝试在自己的测试环境中为SharePoint 2013配置Office Web Apps, 遇到了下面的问题.

文档无法在IE中打开, 报错如下.

排查的过程如下:

1. 查看SharePoint的ULS Log, 发现下面的条目:

06/05/2013 23:37:59.16    w3wp.exe (0x067C)    0x0124    SharePoint Foundation    Claims Authentication    aj0os    Exception    Exception occurred while creating an SPIdentityContext from SPUserToken '47e03bd70000000034000000efeeebea030000000c00000000000000dfdedbda0100000000000000010100000000000000000000'. System.NotSupportedException: Can not create an identity context for system account user token.     at Microsoft.SharePoint.IdentityModel.SPIdentityContext.Create(SPUserToken token, Boolean isShareByLinkGuestUser) StackTrace:  at onetnative.dll: (sig=6aba1f5f-ccc4-4590-af00-b8ffe7fe99a0|2|onetnative.pdb, offset=28BE6) at onetnative.dll: (offset=152A9)    19a6229c-9bdd-2062-33bb-ed8cf11e8631

2. 改用普通帐号登录SharePoint站点, 问题依然存在. 但是SharePoint ULS log已经不再报错了.

3. 登录WAC服务器, 在如下的位置找到ULS日志:

C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS

发现如下的报错:

06/05/2013 23:38:56.21    w3wp.exe (0x1780)    0x2130    Office Web Apps    WAC Hosting Interaction    adhrj    Monitorable    HttpRequestAsync (WOPICheckFile,WACSERVER), request failure [HttpResponseCode:Forbidden, HttpResponseCodeDescription:Forbidden, url:http://sp2013-ca/_vti_bin/wopi.ashx/files/ee46dad3597f414b91d547007d786394?access_token=REDACTED_1056&access_token_ttl=1370536736053]    9bc1abde-e31f-4ec4-9bbc-741b8a169ac6
06/05/2013 23:38:56.21    w3wp.exe (0x1780)    0x258C    Office Web Apps    WAC Hosting Interaction    agw2h    Unexpected    WOPI Check, non-200 return [code:Forbidden, url:http://sp2013-ca/_vti_bin/wopi.ashx/files/ee46dad3597f414b91d547007d786394]    9bc1abde-e31f-4ec4-9bbc-741b8a169ac6
06/05/2013 23:38:56.21    w3wp.exe (0x1780)    0x258C    Office Web Apps    WAC Hosting Interaction    adhsk    Unexpected    WOPI CheckFile: Catch-All Failure [exception:Microsoft.Office.Web.Common.EnvironmentAdapters.FileUnknownException: WOPI Check File     at Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile()]    9bc1abde-e31f-4ec4-9bbc-741b8a169ac6
06/05/2013 23:38:56.21    w3wp.exe (0x1780)    0x258C    Services Infrastructure    Services Infrastructure Logging    ai94t    Unexpected    FileUnknownException while loading the app. [FileSourceId: -1088102096] [ClusterId: 0] [ExtraErrorInfo: ]    9bc1abde-e31f-4ec4-9bbc-741b8a169ac6
06/05/2013 23:44:27.28    w3wp.exe (0x2BC4)    0x1DC4    ULS Logging    Unified Logging Service    b8fx    High    ULS Init Completed (w3wp.exe, uls.native.dll)  

4. 谷歌这条报错, 发现可能跟AllowOAuthOverHttp的设置有关. 于是follow这篇文章的步骤, 配置AllowOAuthOverHttp.

使用的命令如下:

(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

$config = (Get-SPSecurityTokenServiceConfig)

$config.AllowOAuthOverHttp = $true

$config.Update()

(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp

配置之后, 问题解决!

有图有真相.

参考资料

========================

SharePoint 2013 Office Web Apps Problem - Unable to Open/View/Edit

http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/f7be5f88-8c98-464e-8596-60956b5e98fd/

Configure SharePoint 2013 to use Office Web Apps

http://technet.microsoft.com/en-us/library/ff431687.aspx

SharePoint 2013中Office Web Apps的一次排错的更多相关文章

  1. sharepoint 2013 和 office web apps server 2013集成

    环境: 三台服务器  系统:window 2008 R2server01: 192.168.10.162(office web app)server02: 192.168.10.163(AD)serv ...

  2. Exchange 2013与 Office Web Apps 整合

    好久没写什么新文章了,这里有关Office Web Apps 的部署我就省略了,只是在创建web场我一般 会创建2个url, 如: New-OfficeWebAppsFarm -InternalUrl ...

  3. [转载]部署Office Web Apps Server并配置其与SharePoint 2013的集成

    Office Web Apps Server 是新的 Office 服务器产品,它提供 Word.PowerPoint.Excel 和 OneNote 的基于浏览器的版本.单个 Office Web ...

  4. 部署Office Web Apps Server并配置其与SharePoint 2013的集成

    部署Office Web Apps Server并配置其与SharePoint 2013的集成   Office Web Apps Server 是新的 Office 服务器产品,它提供 Word.P ...

  5. Office Web Apps Server 2013与PDF(一)

    好吧--这个消息有点旧,迟了将近4个月. Office Web Apps是微软各大服务产品系列中的一个基础服务,可以为SharePoint 2013.Exchange 2013.Lync 2013提供 ...

  6. Office Web Apps安装部署(一)

    来源于:http://www.cnblogs.com/poissonnotes/p/3238238.html 系统要求为Windows Server 2012, 注意:安装Office Web App ...

  7. Office Web Apps安装部署(二)

    SharePoint 2013调用Office Web Apps 注意:调用OfficeWebApps的sharepoint应用的身份认证必须是基于声明的身份认证(claims-based authe ...

  8. Office Web Apps Server(1)

         Office Web Apps Server runs on one or more servers and provides browser-based Office file viewi ...

  9. Office Web Apps Server 概述

    Office Web Apps Server 是新的 Office 服务器产品,它提供 Word.PowerPoint.Excel 和 OneNote 的基于浏览器的版本.单个 Office Web ...

随机推荐

  1. Ubuntu 13.04 双显卡安装NVIDIA GT 630M驱动

    [日期:2013-05-24]   Linux系统:Ubuntu 13.04 安装 bumblebee 以管理双显卡,下面命令会自动安装NVIDIA显卡驱动 sudo add-apt-reposito ...

  2. 安卓开发笔记——重识Activity

    Activity并不是什么新鲜的东西,老生常谈,这里只是随笔记录一些笔记. 每当说起Activity,感觉最关注的还是它的生命周期,因为要使我们的应用程序更加健壮,客户体验更加良好,如果对生命周期不熟 ...

  3. Ping-Pong (Easy Version)(DFS)

    B. Ping-Pong (Easy Version) time limit per test 2 seconds memory limit per test 256 megabytes input ...

  4. MyBatis知多少(2)

    MyBatis从目前最流行的关系数据库访问方法中吸收了大量的优秀特征和思想,并找出其中的协同增效作用.下图展示了MyBatis框架是如何吸收我们在多年使用不同方式进行数据库集成的 开发过程中所学到的知 ...

  5. 解决 Tomcat 无法绑定 80 端口的问题,以及 Tomcat 配置虚拟目录、二级域名等

    问题 今天安装完 Tomcat,安装时把 Tomcat 默认的 HTTP/1.1 Connector Port 从 8080 改为了 7080,启动 Tomcat,在浏览器中输入 Http://loc ...

  6. 【Android菜鸟学习之路】环境搭建问题-修改AVD Path

    更改avd默认路径

  7. 转 iOS Core Animation 动画 入门学习(一)基础

    iOS Core Animation 动画 入门学习(一)基础 reference:https://developer.apple.com/library/ios/documentation/Coco ...

  8. WebService基于SoapHeader实现安全认证

    本文仅提供通过设置SoapHeader来控制非法用户对WebService的调用,如果是WebService建议使用WSE3.0来保护Web服务,如果使用的是Viaual Studio 2008可以使 ...

  9. C# 只启动一个实例完全解决方案

    工作上经常会遇到"程序只能启动一个实例"这样的需求. 我想,这样的需求应该很普遍,所以没打算去动脑筋,去找谷歌问下就得了,用下来发现,不是这里不爽就是那里不行. 先说下我详细的几点 ...

  10. Python 的字符串格式化和颜色控制

    (部分内容源自武神博客和网络收集.) Python的字符串格式化有两种方式: 百分号方式.format方式 百分号的方式相对来说比较老,而format方式则是比较先进的方式,企图替换古老的方式,目前两 ...