设为首页 收藏本站
查看: 1655|回复: 0

[经验分享] SharePoint 2013中Office Web Apps的一次排错

[复制链接]

尚未签到

发表于 2015-9-29 08:09:50 | 显示全部楼层 |阅读模式
  笔者尝试在自己的测试环境中为SharePoint 2013配置Office Web Apps, 遇到了下面的问题.
  
  文档无法在IE中打开, 报错如下.
DSC0000.png
  
  排查的过程如下:
  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
    
  配置之后, 问题解决!
  
  有图有真相.
DSC0001.png
  
  参考资料
  ========================
  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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-120166-1-1.html 上篇帖子: SharePoint 2010版本表 下篇帖子: Customizing and Extending the Microsoft Office SharePoint 2007 Search (Part 1 of
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表