SharePoint 2013中Office Web Apps的一次排错
转自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
Configure SharePoint 2013 to use Office Web Apps
http://technet.microsoft.com/en-us/library/ff431687.aspx
SharePoint 2013中Office Web Apps的一次排错的更多相关文章
- sharepoint 2013 和 office web apps server 2013集成
环境: 三台服务器 系统:window 2008 R2server01: 192.168.10.162(office web app)server02: 192.168.10.163(AD)serv ...
- Exchange 2013与 Office Web Apps 整合
好久没写什么新文章了,这里有关Office Web Apps 的部署我就省略了,只是在创建web场我一般 会创建2个url, 如: New-OfficeWebAppsFarm -InternalUrl ...
- [转载]部署Office Web Apps Server并配置其与SharePoint 2013的集成
Office Web Apps Server 是新的 Office 服务器产品,它提供 Word.PowerPoint.Excel 和 OneNote 的基于浏览器的版本.单个 Office Web ...
- 部署Office Web Apps Server并配置其与SharePoint 2013的集成
部署Office Web Apps Server并配置其与SharePoint 2013的集成 Office Web Apps Server 是新的 Office 服务器产品,它提供 Word.P ...
- Office Web Apps Server 2013与PDF(一)
好吧--这个消息有点旧,迟了将近4个月. Office Web Apps是微软各大服务产品系列中的一个基础服务,可以为SharePoint 2013.Exchange 2013.Lync 2013提供 ...
- Office Web Apps安装部署(一)
来源于:http://www.cnblogs.com/poissonnotes/p/3238238.html 系统要求为Windows Server 2012, 注意:安装Office Web App ...
- Office Web Apps安装部署(二)
SharePoint 2013调用Office Web Apps 注意:调用OfficeWebApps的sharepoint应用的身份认证必须是基于声明的身份认证(claims-based authe ...
- Office Web Apps Server(1)
Office Web Apps Server runs on one or more servers and provides browser-based Office file viewi ...
- Office Web Apps Server 概述
Office Web Apps Server 是新的 Office 服务器产品,它提供 Word.PowerPoint.Excel 和 OneNote 的基于浏览器的版本.单个 Office Web ...
随机推荐
- Routine Problem(数学)
Routine Problem time limit per test 1 second memory limit per test 256 megabytes input standard inp ...
- HANA Studio中修改默认查询结果只显示1000行
- MyBatis知多少(26)MyBatis和Hibernate区别
iBatis和Hibernate之间有着较大的差异,但两者解决方案很好,因为他们有特定的领域.我个人建议使用MyBatis的,如果: 你想创建自己的SQL,并愿意维持他们. 你的环境是由关系数据模型驱 ...
- AC_Dream 1211 Reactor Cooling
/* 题意:无源无汇,并且每条边的容量有上下界限的网络流问题!既然无源无汇,那么素有的节点都应该满足“入流==出流”! 输出每一条边的流量,使得满足上面的条件.(如果u->v有流量,那么v-&g ...
- Android自定义之仿360Root大师水纹效果
很简单的一个效果.我直接上图了. 代码就不详细说了,贴出关键代码就行了. @Override protected void onDraw(Canvas canvas) { s ...
- backbone库学习-Events
backbone库的框架 http://www.cnblogs.com/nuysoft/archive/2012/03/19/2404274.html 我们先从backbone的Events模块开始 ...
- 前端技术Bootstrap的hello world
----对于用户来说,界面就是程序本身.那么一个漂亮的web一定是你继续使用这个应用的前题. 这一节我们来一起写个Bootstrap的hello wrold. Bootstrap Bootstrap ...
- 专门为码农定制的14款创意的T裇(T-Shirt)设计
T裇衫是人们在各种场合都可穿着的服装,如在T裇衫上作适当的装饰,即可增添无穷的韵味.通过图案直接反映人类的精神风貌,你可以把日常生活中的兴趣.习惯.喜怒哀乐.嗜好等展露无疑,张扬个性.秀出自我.对于码 ...
- js 变量提升+方法提升
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8&quo ...
- nginx的部署与发布
1.在http://nginx.org/en/download.html下载nginx.tar.gz包. 2.上传发送到服务器(wcp工具) 3.用tar -xf命令解压gz包 4.[配置安装变量]: ...